Commit Graph
65 Commits
Author SHA1 Message Date
Adam Heath 46a201affd The admin port, and admin key, are now saved in a config file, and
no longer passed on the ofbiz command line.  Additionally, the port
can be changed during install.  Plus, the admin key is randomized to
something different, if it isn't already set during an install or an
upgrade.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@766249 13f79535-47bb-0310-9956-ffa450edef68
2009-04-18 06:39:34 +00:00
Adam Heath ce26a49435 The admin-user prompt is now a high priority.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@766248 13f79535-47bb-0310-9956-ffa450edef68
2009-04-18 06:37:07 +00:00
Adam Heath 21c5f418e8 Move the setting of cmd to right before the case.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@766247 13f79535-47bb-0310-9956-ffa450edef68
2009-04-18 06:36:32 +00:00
Adam Heath 590f63687e There is no longer any funky jumping around with the STATE, so NEXT
is no longer needed.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@766245 13f79535-47bb-0310-9956-ffa450edef68
2009-04-18 06:35:45 +00:00
Adam Heath fd74a3f5c3 Remove commented out $tempfile removal line.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@766244 13f79535-47bb-0310-9956-ffa450edef68
2009-04-18 06:34:29 +00:00
Adam Heath b26ab3696a Forgot to remove the ofbiz_readers conditional in configure_ofbiz.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@766243 13f79535-47bb-0310-9956-ffa450edef68
2009-04-18 06:33:39 +00:00
Adam Heath 74f6289935 No longer prompt whether to reimport data, nor which reader to
import.  seed is always imported when ofbiz packages get installed/
upgraded.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@766242 13f79535-47bb-0310-9956-ffa450edef68
2009-04-18 06:32:43 +00:00
Adam Heath 07cdc79267 ofbiz_admin_port is never used(at least not yet), so remove it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@766240 13f79535-47bb-0310-9956-ffa450edef68
2009-04-18 06:25:48 +00:00
Adam Heath 77dd3fbf49 No longer find and change the default ofbiz test email and admin
login password.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@766239 13f79535-47bb-0310-9956-ffa450edef68
2009-04-18 06:22:23 +00:00
Adam Heath b204aae7ca Prompt for the initial admin login account's name.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@766235 13f79535-47bb-0310-9956-ffa450edef68
2009-04-18 06:15:52 +00:00
Adam Heath 695e25bf15 Create the initial admin login account. The userLoginId is
hard-coded for now, but that will change soon.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@766232 13f79535-47bb-0310-9956-ffa450edef68
2009-04-18 06:12:32 +00:00
Adam Heath 550dd252d6 Add support for sub-packages to install/update extra data, by dropping
an ofbiz data xml file in /var/lib/ofbiz/import.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@766230 13f79535-47bb-0310-9956-ffa450edef68
2009-04-18 06:10:15 +00:00
Adam Heath 7f7255ecf0 Remove ofbiz-upgrade trigger support; all packages now activate
ofbiz-install trigger, and each package must stop ofbiz itself.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@766227 13f79535-47bb-0310-9956-ffa450edef68
2009-04-18 06:05:15 +00:00
Adam Heath f69c88988c Rename the auto-managed dbconfig-common config file from debconf.cfg
to dbc-debconf.cfg.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@766224 13f79535-47bb-0310-9956-ffa450edef68
2009-04-18 05:57:07 +00:00
Adam Heath acb0bd37e6 Put /usr/share/ofbiz into OFBIZ_HOME.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@766223 13f79535-47bb-0310-9956-ffa450edef68
2009-04-18 05:53:31 +00:00
Adam Heath 13498fe96c Protect dpkg-statoverride call on /var/lib/ofbiz, incase it's already
been done.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@766222 13f79535-47bb-0310-9956-ffa450edef68
2009-04-18 05:51:48 +00:00
Adam Heath 374f5a9ea8 Redirect dd output to /dev/null.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@766218 13f79535-47bb-0310-9956-ffa450edef68
2009-04-18 05:36:06 +00:00
Adam Heath 5fa0bf5bcb Combine start_ofbiz and stop_ofbiz.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@766216 13f79535-47bb-0310-9956-ffa450edef68
2009-04-18 05:31:45 +00:00
Adam Heath e3738bbe85 Trigger support is working much better now.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@765771 13f79535-47bb-0310-9956-ffa450edef68
2009-04-16 21:33:58 +00:00
Adam Heath b284557d7a Specialpurpose doesn't really need to depend on the ofbiz meta
package.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@765768 13f79535-47bb-0310-9956-ffa450edef68
2009-04-16 21:31:51 +00:00
Adam Heath 329afa002d Add new item, about sequence id prefix prompting.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@764954 13f79535-47bb-0310-9956-ffa450edef68
2009-04-14 21:08:59 +00:00
Adam Heath b5e62ba8f3 Rotate console log daily, and keep 60 of them.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@764953 13f79535-47bb-0310-9956-ffa450edef68
2009-04-14 21:06:28 +00:00
Jacques Le Roux b9c3ddef08 2d part and end of an effort to remove trailing spaces
[ \t]+$ => "" (empty)
Should be easier to review when committing changes with trailing spaces removed automatically by anyedit or such tool (please refer to http://docs.ofbiz.org/x/mg)

Of course this effort to remove trailing spaces has no functional implications.

Actually, I was doing a 1st commit and as it's long to upload, I got conflicts with r763135
In the meantime I did some refactoring also in *.java and *.groovy files :
){ => ) {
if( => if (
while( => while (
}else => } else
else{ => else {
switch( => switch (
try{ => try {
}catch => } catch
catch( => catch (
}finally{ => } finally {

So these changes are also in this commit, should not be a problem anyway.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@763175 13f79535-47bb-0310-9956-ffa450edef68
2009-04-08 10:54:51 +00:00
Adam Heath ebab10ece3 Start making use of dpkg triggers, so that ofbiz only gets stopped/
started once per dpkg run, and so that installation is delayed to
the end of the dpkg run as well.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@753322 13f79535-47bb-0310-9956-ffa450edef68
2009-03-13 17:27:18 +00:00
Adam Heath 0fdd7019b3 Save a copy of the install log.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@750216 13f79535-47bb-0310-9956-ffa450edef68
2009-03-04 23:02:50 +00:00
Adam Heath dce3024f10 Remove disabled block that deal with debconf.cfg.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@750209 13f79535-47bb-0310-9956-ffa450edef68
2009-03-04 22:46:51 +00:00
Adam Heath 81143700d4 Explicitly stop/start the ofbiz daemon, instead of letting debhelper
do it.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@750207 13f79535-47bb-0310-9956-ffa450edef68
2009-03-04 22:44:36 +00:00
Adam Heath 827f2005b5 Vim's syntax highlighting is a little stupid, add some quotes so it
is no longer confused.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@750196 13f79535-47bb-0310-9956-ffa450edef68
2009-03-04 22:33:36 +00:00
Adam Heath 03793c4953 $extra has " in it, so we need to use eval to run it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@749835 13f79535-47bb-0310-9956-ffa450edef68
2009-03-03 23:19:33 +00:00
Adam Heath 301ca2da07 No longer set the ofbiz/readers value to seed; this was causing the
seed data to be imported twice during install.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@749832 13f79535-47bb-0310-9956-ffa450edef68
2009-03-03 23:18:49 +00:00
Adam Heath 3a35d5eca6 Move automatic debhelper commands to just after debconf is started.
This allows purging of the database to work, as the daemon is now
stopped at the right time.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@749828 13f79535-47bb-0310-9956-ffa450edef68
2009-03-03 23:10:40 +00:00
Adam Heath 80f5f93ccc Remove set -x.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@749826 13f79535-47bb-0310-9956-ffa450edef68
2009-03-03 23:09:56 +00:00
Adam Heath b19863b269 Rewrote the main loop, so it pulls each step from an array. This
will allow for adding new entries without having to renumber
everything.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@749814 13f79535-47bb-0310-9956-ffa450edef68
2009-03-03 22:51:50 +00:00
Adam Heath 6588447739 Remove stat override on the homedir during purge.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@749813 13f79535-47bb-0310-9956-ffa450edef68
2009-03-03 22:49:43 +00:00
Adam Heath 4fd55f250a Various minor updates, closer to being lintian clean.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@749190 13f79535-47bb-0310-9956-ffa450edef68
2009-03-02 05:16:09 +00:00
Adam Heath f5664016ec Add LSB header.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@749189 13f79535-47bb-0310-9956-ffa450edef68
2009-03-02 05:15:16 +00:00
Adam Heath 1b3221b275 Set the shell for the ofbiz user to /bin/sh.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@749159 13f79535-47bb-0310-9956-ffa450edef68
2009-03-02 03:16:33 +00:00
Adam Heath 3f96d79f82 Remove upgrade support, these still aren't really official.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@749158 13f79535-47bb-0310-9956-ffa450edef68
2009-03-02 03:15:50 +00:00
Adam Heath 41fd0ba90b The internal ant is now used.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@749154 13f79535-47bb-0310-9956-ffa450edef68
2009-03-02 02:57:40 +00:00
Adam Heath ca4eb13966 Set the permissions on the ofbiz home dir so that it is writable by
the correct user.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@749153 13f79535-47bb-0310-9956-ffa450edef68
2009-03-02 02:54:24 +00:00
Adam Heath 6e1c9c8033 Fix inverted test in jsvc compat code.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@749152 13f79535-47bb-0310-9956-ffa450edef68
2009-03-02 02:53:27 +00:00
Adam Heath 5281c06325 Depend on openjdk-6-jdk, instead of the sun variant; these packages
could now go into main.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@718657 13f79535-47bb-0310-9956-ffa450edef68
2008-11-18 17:18:56 +00:00
Adam Heath 8cdb901ebf Fix the debian clean target.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@718649 13f79535-47bb-0310-9956-ffa450edef68
2008-11-18 16:58:05 +00:00
Adam Heath 9a7763dae4 The ofbiz-framework.deb is now installable; upgrades are *not*
handled.  Instaling -applications or -specialpurpose, or any other
package that drops into hot-deploy is not yet supported; namely, the
extra seed/demo data won't get installed, and the daemon won't be
restarted.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@718535 13f79535-47bb-0310-9956-ffa450edef68
2008-11-18 09:45:52 +00:00
Adam Heath 6c4f9b1c94 Preparing the helper scripts and files for framework.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@718511 13f79535-47bb-0310-9956-ffa450edef68
2008-11-18 06:58:40 +00:00
Adam Heath cdc01b9008 Preparing to split the packaging a bit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@718507 13f79535-47bb-0310-9956-ffa450edef68
2008-11-18 06:50:05 +00:00
Adam Heath 38c55148c1 Fix spelling of ofbiz.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@718505 13f79535-47bb-0310-9956-ffa450edef68
2008-11-18 06:46:11 +00:00
Adam Heath a1922c66dc When running find, pass the command name thru using qw() as well.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@714089 13f79535-47bb-0310-9956-ffa450edef68
2008-11-14 18:11:49 +00:00
Adam Heath 1a339a6c62 If you happened to call binary before calling build, it would fail.
So, add a dep to make certain things are actually built.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@714086 13f79535-47bb-0310-9956-ffa450edef68
2008-11-14 18:05:56 +00:00
Adam Heath df088248c2 Use a stamps dir to save from having to compile ofbiz all the time.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@714085 13f79535-47bb-0310-9956-ffa450edef68
2008-11-14 18:03:59 +00:00