mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 07:50:11 +01:00
fixed the postinstall script to fix the mysql password
This commit is contained in:
parent
394c77d322
commit
97044f19e6
@ -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... "
|
||||||
|
Loading…
Reference in New Issue
Block a user