Welcome, Guest
Please Login or Register.    Lost Password?

DB: How can I pre-install different applications?
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: DB: How can I pre-install different applications?
#11
DB: How can I pre-install different applications? 14 Years, 1 Month ago Karma: 2
NOTE: * Applicable to version 2.1.x only *

Some customers wish to repackage the GO-Global UX product into their own installers and have different applications pre-published at install time.

Assuming that you have extracted the files necessary to install GO-Global UX and packaged them into your own installer, do not package any of the files under the ${GOGLOBAL_ROOT}/postgresql/data directory (or remove any of those files after installation).

Create "dump" files to represent the sets of applications that you want to install. Configure the database on a test system the way that you want the database to be on the installed system, then use the "pg_dump" command to dump the database contents into a file/

Code:

# $(GOGLOBAL_ROOT)/postgresql/bin/pg_dump -p 4491 -u goglobalux > file


When you run this command, the output is being redirected to the file, so you don't see the prompts, but the first prompt is for a username -- type 'goglobal'. You will then be prompted for the password, which will not echo -- use 'vnOIoka23sayg2UE0'.

You should then get your prompt back, and have a file called 'file' which is the dump of the database. You'll have to edit the file to remove the "Username: Password:" line at the top. Also, remove the "\connect" line.

Once your installation has determined the correct dump file to use in the installation, you will need to:

0. Set your ${GOGLOBAL_ROOT} environment variable, using a command similar to one of these (depending on your shell):

Code:

# export GOGLOBAL_ROOT=/usr/local/graphon (bash/ksh)
# setenv GOGLOBAL_ROOT /usr/local/graphon (csh)
# GOGLOBAL_ROOT=/usr/local/graphon; export GOGLOBAL_ROOT (sh)



1. Recreate an empty database:

Code:

# bin/gdbi -dbuser goglobal initialize setpassword start create


2. Import the database data:

Code:

# postgresql/bin/psql -U goglobal -p 4491 goglobalux < file


3. Shut down the database:

Code:

# bin/gdbi -dbuser goglobal stop


You can then start the product using the $(GOGLOBAL_ROOT)/etc/goglobalux script.

Caution should be taken to recognize that the GO-Global UX database records the numeric user and group IDs from the UNIX system for its permission database, so if corresponding user and group IDs do not exist on the target system, some icons will appear to be published incorrectly.
troy
Administrator
Posts: 231
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Birthday: 01/14
The administrator has disabled public write access.
 
Go to topPage: 1
Moderators: troy, Andyl