Skip to content

Commit b205116

Browse files
authored
Add check if /etc/nginx/conf.d exists
1 parent 23c904a commit b205116

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

install/upgrade/versions/1.4.4.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@
77
#######################################################################################
88

99

10-
#Add nginx user_agent separation to desktop/mobile
11-
cp -f $HESTIA_INSTALL_DIR/nginx/agents.conf /etc/nginx/conf.d/
10+
if [ -d "/etc/nginx/conf.d/" ]; then
11+
#Add nginx user_agent separation to desktop/mobile
12+
cp -f $HESTIA_INSTALL_DIR/nginx/agents.conf /etc/nginx/conf.d/
13+
fi
1214

1315
# Reset PMA SSO to fix bug with Nginx + Apache2
1416
if [ "$PHPMYADMIN_KEY" != "" ]; then

0 commit comments

Comments
 (0)