mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-08 06:32:00 +01:00
post install script fix
This commit is contained in:
parent
59563a31c6
commit
45ad6cc118
@ -6,6 +6,7 @@ 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"
|
PILERCONF_TMP="/tmp/config.piler.88"
|
||||||
|
SOCKET_HELPER_SCRIPT="aaa.pl"
|
||||||
|
|
||||||
|
|
||||||
load_default_values() {
|
load_default_values() {
|
||||||
@ -381,7 +382,13 @@ execute_post_install_tasks() {
|
|||||||
|
|
||||||
make_certificate
|
make_certificate
|
||||||
|
|
||||||
MYSQL_SOCKET=$(sed 's/\//\\\//g' <<< "$MYSQL_SOCKET")
|
cat <<SOCKHELPER > $SOCKET_HELPER_SCRIPT
|
||||||
|
\$a=\$ARGV[0];
|
||||||
|
\$a=~s/\//\\\\\//g;
|
||||||
|
print \$a;
|
||||||
|
SOCKHELPER
|
||||||
|
|
||||||
|
MYSQL_SOCKET=`perl $SOCKET_HELPER_SCRIPT $MYSQL_SOCKET`
|
||||||
|
|
||||||
sed -e "s/mysqlpwd=verystrongpassword/mysqlpwd=$MYSQL_PASSWORD/" -e "s/tls_enable=0/tls_enable=1/" -e "s/mysqlsocket=\/var\/run\/mysqld\/mysqld.sock/mysqlsocket=$MYSQL_SOCKET/" $SYSCONFDIR/piler.conf > $PILERCONF_TMP
|
sed -e "s/mysqlpwd=verystrongpassword/mysqlpwd=$MYSQL_PASSWORD/" -e "s/tls_enable=0/tls_enable=1/" -e "s/mysqlsocket=\/var\/run\/mysqld\/mysqld.sock/mysqlsocket=$MYSQL_SOCKET/" $SYSCONFDIR/piler.conf > $PILERCONF_TMP
|
||||||
cat $PILERCONF_TMP > $SYSCONFDIR/piler.conf
|
cat $PILERCONF_TMP > $SYSCONFDIR/piler.conf
|
||||||
|
Loading…
Reference in New Issue
Block a user