Преглед изворни кода

Add check if /etc/nginx/conf.d exists

Jaap Marcus пре 4 година
родитељ
комит
b20511603a
1 измењених фајлова са 4 додато и 2 уклоњено
  1. 4 2
      install/upgrade/versions/1.4.4.sh

+ 4 - 2
install/upgrade/versions/1.4.4.sh

@@ -7,8 +7,10 @@
 #######################################################################################
 #######################################################################################
 
 
 
 
-#Add nginx user_agent separation to desktop/mobile
-cp -f $HESTIA_INSTALL_DIR/nginx/agents.conf /etc/nginx/conf.d/
+if [ -d "/etc/nginx/conf.d/" ]; then
+    #Add nginx user_agent separation to desktop/mobile
+    cp -f $HESTIA_INSTALL_DIR/nginx/agents.conf /etc/nginx/conf.d/
+fi
 
 
 # Reset PMA SSO to fix bug with Nginx + Apache2 
 # Reset PMA SSO to fix bug with Nginx + Apache2 
 if [ "$PHPMYADMIN_KEY" != "" ]; then
 if [ "$PHPMYADMIN_KEY" != "" ]; then