Procházet zdrojové kódy

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

Jaap Marcus před 4 roky
rodič
revize
b20511603a
1 změnil soubory, kde provedl 4 přidání a 2 odebrání
  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 
 if [ "$PHPMYADMIN_KEY" != "" ]; then