Просмотр исходного кода

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

Jaap Marcus 4 лет назад
Родитель
Сommit
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 
 if [ "$PHPMYADMIN_KEY" != "" ]; then