mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-07-29 06:25:01 +02:00
fixed the postinstall script to fix the mysql password
This commit is contained in:
@@ -5,7 +5,7 @@ INDEXER=`which indexer 2>/dev/null`
|
|||||||
SEARCHD=`which searchd 2>/dev/null`
|
SEARCHD=`which searchd 2>/dev/null`
|
||||||
CRON_ORIG="/tmp/crontab.piler.orig"
|
CRON_ORIG="/tmp/crontab.piler.orig"
|
||||||
CRON_TMP="/tmp/crontab.piler"
|
CRON_TMP="/tmp/crontab.piler"
|
||||||
|
PILERCONF_TMP="/tmp/config.piler.88"
|
||||||
|
|
||||||
. ./util/utilfunc.sh
|
. ./util/utilfunc.sh
|
||||||
|
|
||||||
@@ -195,6 +195,10 @@ execute_post_install_tasks() {
|
|||||||
rm -f $KEYTMPFILE
|
rm -f $KEYTMPFILE
|
||||||
echo "Done."
|
echo "Done."
|
||||||
|
|
||||||
|
sed "s/mysqlpwd=verystrongpassword/mysqlpwd=$MYSQL_PASSWORD/" $SYSCONFDIR/piler.conf > $PILERCONF_TMP
|
||||||
|
cat $PILERCONF_TMP > $SYSCONFDIR/piler.conf
|
||||||
|
rm -f $PILERCONF_TMP
|
||||||
|
|
||||||
chmod 755 $LOCALSTATEDIR/piler/stat
|
chmod 755 $LOCALSTATEDIR/piler/stat
|
||||||
|
|
||||||
echo -n "Copying www files to $DOCROOT... "
|
echo -n "Copying www files to $DOCROOT... "
|
||||||
|
Reference in New Issue
Block a user