diff --git a/util/postinstall.sh b/util/postinstall.sh index 06042d95..fb66550f 100755 --- a/util/postinstall.sh +++ b/util/postinstall.sh @@ -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... "