fixed the postinstall script to fix the mysql password

This commit is contained in:
SJ 2013-09-20 20:51:00 +02:00
parent 394c77d322
commit 97044f19e6

View File

@ -5,7 +5,7 @@ INDEXER=`which indexer 2>/dev/null`
SEARCHD=`which searchd 2>/dev/null`
CRON_ORIG="/tmp/crontab.piler.orig"
CRON_TMP="/tmp/crontab.piler"
PILERCONF_TMP="/tmp/config.piler.88"
. ./util/utilfunc.sh
@ -195,6 +195,10 @@ execute_post_install_tasks() {
rm -f $KEYTMPFILE
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
echo -n "Copying www files to $DOCROOT... "