Update phpmyadmin.sh
This commit is contained in:
parent
58de656fe7
commit
155a8022f9
@ -162,12 +162,10 @@ accesslog.filename = "/var/log/lighttpd/access.log"
|
|||||||
server.errorlog = "/var/log/lighttpd/error.log"
|
server.errorlog = "/var/log/lighttpd/error.log"
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
msg_info "Starting php-fpm and Lighttpd"
|
msg_info "Starting PHP-FPM and Lighttpd"
|
||||||
PHP_FPM_SERVICE=$(rc-service -l | grep -E '^php[0-9]*-fpm$' | head -n 1)
|
|
||||||
|
|
||||||
if [[ -z "$PHP_FPM_SERVICE" ]]; then
|
PHP_VERSION=$(php -r 'echo PHP_MAJOR_VERSION . PHP_MINOR_VERSION;')
|
||||||
PHP_FPM_SERVICE="php-fpm" # Standard bei neuer Installation
|
PHP_FPM_SERVICE="php-fpm${PHP_VERSION}"
|
||||||
fi
|
|
||||||
|
|
||||||
if rc-service "$PHP_FPM_SERVICE" start && rc-update add "$PHP_FPM_SERVICE" default; then
|
if rc-service "$PHP_FPM_SERVICE" start && rc-update add "$PHP_FPM_SERVICE" default; then
|
||||||
msg_ok "Started PHP-FPM service: $PHP_FPM_SERVICE"
|
msg_ok "Started PHP-FPM service: $PHP_FPM_SERVICE"
|
||||||
@ -179,6 +177,7 @@ EOF
|
|||||||
rc-service lighttpd start
|
rc-service lighttpd start
|
||||||
rc-update add lighttpd default
|
rc-update add lighttpd default
|
||||||
msg_ok "Configured and started Lighttpd successfully"
|
msg_ok "Configured and started Lighttpd successfully"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user