FIX: Syntax error - missing fi in extract_user_from_path function
Line 1493 had ';;' instead of 'fi' to close the if statement in the default
case of the extract_user_from_path function. This caused syntax errors.
Changed:
;;
esac
To:
fi
;;
esac
Script syntax now verified OK.
This commit is contained in:
@@ -1490,6 +1490,7 @@ extract_user_from_path() {
|
|||||||
user=$(stat -c %U "$site_path" 2>/dev/null)
|
user=$(stat -c %U "$site_path" 2>/dev/null)
|
||||||
if [ -z "$user" ]; then
|
if [ -z "$user" ]; then
|
||||||
user="www-data"
|
user="www-data"
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user