We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d850d9 commit 45c0532Copy full SHA for 45c0532
1 file changed
install/upgrade/versions/latest.sh
@@ -92,10 +92,12 @@ if [ ! -e "$HESTIA/web/fm/configuration.php" ]; then
92
fi
93
94
# Enable nginx module loading
95
-if [ ! -d "/etc/nginx/modules-enabled" ]; then
96
- mkdir -p "/etc/nginx/modules-enabled"
97
-fi
+if [ -f "/etc/nginx/nginx.conf" ]; then
+ if [ ! -d "/etc/nginx/modules-enabled" ]; then
+ mkdir -p "/etc/nginx/modules-enabled"
98
+ fi
99
-if ! grep --silent "include /etc/nginx/modules-enabled" /etc/nginx/nginx.conf; then
100
- sed -i '/^pid/ a include /etc/nginx/modules-enabled/*.conf;' /etc/nginx/nginx.conf
+ if ! grep --silent "include /etc/nginx/modules-enabled" /etc/nginx/nginx.conf; then
101
+ sed -i '/^pid/ a include /etc/nginx/modules-enabled/*.conf;' /etc/nginx/nginx.conf
102
103
0 commit comments