mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-07 22:51:59 +01:00
postinstall fix
This commit is contained in:
parent
6fed43bddd
commit
b43507bb61
@ -32,7 +32,7 @@ load_default_values() {
|
||||
SPHINXCFG="/usr/local/etc/sphinx.conf"
|
||||
|
||||
WWWGROUP="apache"
|
||||
DOCROOT="/var/www/$HOSTNAME"
|
||||
DOCROOT="/var/www/piler"
|
||||
|
||||
SMARTHOST=""
|
||||
SMARTHOST_PORT=25
|
||||
@ -195,11 +195,6 @@ preinstall_check() {
|
||||
|
||||
|
||||
gather_webserver_data() {
|
||||
askNonBlank "Please enter the path of your documentroot" "$DOCROOT"
|
||||
DOCROOT=$response
|
||||
|
||||
if [ -d $DOCROOT ]; then echo "ERROR: vhost docroot should NOT exist, abroting install"; echo ""; exit 0; fi
|
||||
|
||||
askNonBlank "Please enter the webserver groupname" "$WWWGROUP"
|
||||
WWWGROUP=$response
|
||||
}
|
||||
@ -421,7 +416,7 @@ webui_install() {
|
||||
echo >> $DOCROOT/config-site.php
|
||||
|
||||
echo "\$config['SITE_NAME'] = '$HOSTNAME';" >> $DOCROOT/config-site.php
|
||||
echo "\$config['SITE_URL'] = 'http://$HOSTNAME/';" >> $DOCROOT/config-site.php
|
||||
echo "\$config['SITE_URL'] = 'http://' . \$config['SITE_NAME'] . '/';" >> $DOCROOT/config-site.php
|
||||
echo "\$config['DIR_BASE'] = '$DOCROOT/';" >> $DOCROOT/config-site.php
|
||||
|
||||
echo >> $DOCROOT/config-site.php
|
||||
|
Loading…
Reference in New Issue
Block a user