install_mysql.sh: fix error replacing 'EnvironmentFile' variable at service file (parallel installation).
This commit is contained in:
parent
35f8fc7345
commit
91c661bb40
@ -4849,8 +4849,8 @@ EOF
|
|||||||
echo "## -" >> ${logdir}/main.log
|
echo "## -" >> ${logdir}/main.log
|
||||||
|
|
||||||
if grep -q -E "^\s*EnvironmentFile\s*=" /etc/systemd/system/$MYSQL_SERVICE_FILE ; then
|
if grep -q -E "^\s*EnvironmentFile\s*=" /etc/systemd/system/$MYSQL_SERVICE_FILE ; then
|
||||||
echo "perl -i -n -p -e \"s/^(\s*EnvironmentFile\s*=.*)/#\1\nEnvironmentFile=-${SYSTEMD_ENV_FILE}\" /etc/systemd/system/$MYSQL_SERVICE_FILE" >> ${logdir}/main.log
|
echo "perl -i -n -p -e \"s#^(\s*EnvironmentFile\s*=.*)#\#\1\nEnvironmentFile=-${SYSTEMD_ENV_FILE}#\" /etc/systemd/system/$MYSQL_SERVICE_FILE" >> ${logdir}/main.log
|
||||||
perl -i -n -p -e "s/^(\s*EnvironmentFile\s*=.*)/#\1\nEnvironmentFile=-${SYSTEMD_ENV_FILE}/" \
|
perl -i -n -p -e "s#^(\s*EnvironmentFile\s*=.*)#\#\1\nEnvironmentFile=-${SYSTEMD_ENV_FILE}#" \
|
||||||
/etc/systemd/system/$MYSQL_SERVICE_FILE >> ${logdir}/main.log 2>&1
|
/etc/systemd/system/$MYSQL_SERVICE_FILE >> ${logdir}/main.log 2>&1
|
||||||
_retval=$?
|
_retval=$?
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user