install_httpd-2.4.sh: Replace '' with '/usr/local/apache2' in service file.
This commit is contained in:
parent
0e5bb65552
commit
85bc06a726
@ -3366,6 +3366,21 @@ EOF
|
|||||||
warn "Creating systemd service file '/etc/systemd/system/apache2.service' failed."
|
warn "Creating systemd service file '/etc/systemd/system/apache2.service' failed."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "" >> ${_logdir}/main.log
|
||||||
|
echo "## - Replace '$PREFIX' with '/usr/local/apache2' in service file.." >> ${_logdir}/main.log
|
||||||
|
echo "## -" >> ${_logdir}/main.log
|
||||||
|
echo "perl -i -n -p -e \"s#$PREFIX#/usr/local/apache2#g\" /etc/systemd/system/apache2.service" >> ${_logdir}/main.log
|
||||||
|
echo -e "\tReplace '$PREFIX' with '/usr/local/apache2' in service file.."
|
||||||
|
echononl "\t '/usr/local/apache2' in service file.."
|
||||||
|
perl -i -n -p -e "s#$PREFIX#/usr/local/apache2#g" /etc/systemd/system/apache2.service >> ${_logdir}/main.log 2>&1
|
||||||
|
if [ "$?" = "0" ]; then
|
||||||
|
echo_ok
|
||||||
|
else
|
||||||
|
echo_failed
|
||||||
|
warn "Replacing '$PREFIX' with '/usr/local/apache2' in service file failed."
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user