install_httpd-2.4.sh: Start apache2 after installation, even if the service was not running.
This commit is contained in:
		| @@ -3945,28 +3945,32 @@ if [[ -n "$_httpd_current_version" ]]; then | ||||
| fi # if [[ -n "$_httpd_current_version" ]] | ||||
|  | ||||
|  | ||||
| if $START_APACHE_WEBSERVICE ; then | ||||
|    echo "" >> ${_logdir}/main.log | ||||
|    echo "" >> ${_logdir}/main.log | ||||
|    echo "## - Start Apache Webserver" >> ${_logdir}/main.log | ||||
|    echo "## -" >> ${_logdir}/main.log | ||||
|    echo "" | ||||
|    echononl "\tStarting Apache Webserver.." | ||||
|    if $SYSTEMD_SUPPORTED ; then | ||||
| # --- | ||||
| # - Start apache webservice | ||||
| # --- | ||||
| echo "" >> ${_logdir}/main.log | ||||
| echo "" >> ${_logdir}/main.log | ||||
| echo "## - Start Apache Webserver" >> ${_logdir}/main.log | ||||
| echo "## -" >> ${_logdir}/main.log | ||||
| echo "" | ||||
| echononl "\tStarting Apache Webserver.." | ||||
| if $SYSTEMD_SUPPORTED ; then | ||||
|    echo "systemctl start apache2" >> ${_logdir}/main.log | ||||
|    systemctl start apache2 >> ${_logdir}/main.log 2>&1 | ||||
|    else | ||||
| else | ||||
|    echo "/etc/init.d/apache2 start" >> ${_logdir}/main.log | ||||
|    /etc/init.d/apache2 start >> ${_logdir}/main.log 2>&1 | ||||
|    fi | ||||
|    if [ "$?" = "0" ]; then | ||||
| fi | ||||
| if [ "$?" = "0" ]; then | ||||
|    echo_ok | ||||
|    else | ||||
| else | ||||
|    echo_failed | ||||
|    warn "Starting Apache Webservice failed!." | ||||
|    fi | ||||
| fi | ||||
|  | ||||
| # --- | ||||
| # - Reenable crontab for user root | ||||
| # --- | ||||
| echo | ||||
| echononl "\tReenable crontab for user root .." | ||||
| echo "" >> ${_logdir}/main.log | ||||
|   | ||||
		Reference in New Issue
	
	Block a user