Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 34590 Details for
Bug 54764
rt-3.2.1.ebuild (New Package)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
reconfig
reconfig (text/plain), 2.79 KB, created by
Renat Lumpau (RETIRED)
on 2004-07-01 09:45:16 UTC
(
hide
)
Description:
reconfig
Filename:
MIME Type:
Creator:
Renat Lumpau (RETIRED)
Created:
2004-07-01 09:45:16 UTC
Size:
2.79 KB
patch
obsolete
>#!/bin/bash > >MY_FILE=${VHOST_ROOT}/etc/RT_SiteConfig.pm > >function choice { > select opt in $@; do > if [ ${opt} ]; then > echo "Set(\$DatabaseType , '${opt}');" >> ${MY_FILE} > break > else > echo "Please choose one of the options" > fi > done >} > >function input { > read A > echo ${A} >} > >if [ $1 = "start" -o $1 = "install" ]; then > MY_VHOST_ROOT=`echo ${VHOST_ROOT} | sed "s.\/.\\\\\/.g"` > MY_INST=`echo ${MY_INSTALLDIR} | sed "s.\/.\\\\\/.g"` > > # RT_Config.pm > # ask the user and copy changes into RT_SiteConfig.pm > echo "Would you like to manually configure your installation? (y/n)" > if [ `input` != 'y' ]; then > echo "Make sure to edit ${MY_FILE} when you are ready" > else > echo > echo "Choose the database driver. Be sure to have that database set up and configured before using RT" > choice mysql Pg Oracle > > echo "The domain name (DatabaseHost) of your database server" > echo "If you're running mysql and it's on localhost," > echo "leave it blank for enhanced performance" > echo "Set(\$DatabaseHost, '`input`');" >> ${MY_FILE} > echo "Now enter DatabaseRTHost" > echo "Set(\$DatabaseRTHost, '`input`');" >> ${MY_FILE} > > echo "The port that your database server is running on. Ignored unless it's" > echo "a positive integer. It's usually safe to leave this blank" > echo "Set(\$DatabasePort, '`input`');" >> ${MY_FILE} > > echo "The name of the database user (inside the database). It SHOULD NOT be postgres for PostgreSQL" > echo "Set(\$DatabaseUser, '`input`');" >> ${MY_FILE} > > echo "Password the DatabaseUser should use to access the database" > echo "Set(\$DatabasePassword, '`input`');" >> ${MY_FILE} > > echo "The name of the RT's database on your database server" > echo "Set(\$DatabaseName, '`input`');" >> ${MY_FILE} > > echo "Set(\$LogDir, '${VHOST_ROOT}/var/log');" >> ${MY_FILE} > fi > > # reconfigure the installation > # get the list of files updated from the configure script > for A in `cat ${VHOST_ROOT}/etc/config.output`; do > sed -e "s/\/opt\/rt3\/share\/html/${MY_INST}/g > s/\/opt\/rt3/${MY_VHOST_ROOT}/g" -i ${VHOST_ROOT}/${A} > done > > # clean up > find ${VHOST_ROOT} -name *.in -print0 | xargs -0r rm -f > > # fix permissions > chmod u+x ${VHOST_ROOT}/sbin/rt-setup-database ${VHOST_ROOT}/bin/* > chmod +wt ${VHOST_ROOT}/var/log > > # check for upgrades > A=`webapp-config --list-installs rt` > B=`basename ${A}` > C=`webapp-config --show-installed -d ${B} | cut -d' ' -f2` > > echo '*********************' > echo "Checking for upgrades" > cd "${VHOST_ROOT}/etc/upgrade" > for i in *; do > if [ `expr "${C} < ${i}"` ]; then > echo "${VHOST_ROOT}/sbin/rt-setup-database --action insert \ " > echo "--datafile etc/upgrade/${i}" > ${VHOST_ROOT}/sbin/rt-setup-database --action insert --datafile etc/upgrade/${i} || echo "Automatic upgrade failed. Make note of the error message above and upgrade manually." > fi > done >else > echo $1 >fi
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 54764
:
33862
|
33863
|
33864
|
33865
|
33866
|
33867
|
33868
|
33869
|
33870
|
33871
|
33899
|
34588
|
34589
|
34590
|
34591
|
34592
|
34593
|
34594
|
34595
|
34601
|
34602
|
34711
|
34712
|
34713
|
36771
|
36772
|
36773
|
36815