1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2025-03-01 10:31:47 +00:00

Merge pull request from billz/fix-a-fix

Fix properly
This commit is contained in:
Lawrence 2017-10-29 12:25:31 +08:00 committed by GitHub
commit 85c0c29923
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -73,10 +73,11 @@ function enable_php_lighttpd() {
install_log "Enabling PHP for lighttpd"
sudo lighty-enable-mod fastcgi-php
if [ $? -eq 2 ]
ERR=$?
if [ $ERR -eq 2 ]
then
echo ' [already enabled]'
elif [ $? -ne 0 ]
elif [ $ERR -ne 0 ]
then
install_error "Cannot enable fastcgi-php for lighttpd"
fi