Robert Zollner 5 лет назад
Родитель
Сommit
a87ee33cb7
1 измененных файлов с 19 добавлено и 0 удалено
  1. 19 0
      install/upgrade/versions/1.3.3.sh

+ 19 - 0
install/upgrade/versions/1.3.3.sh

@@ -0,0 +1,19 @@
+#!/bin/bash
+
+# Hestia Control Panel upgrade script for target version 1.3.3
+
+#######################################################################################
+#######                      Place additional commands below.                   #######
+#######################################################################################
+
+
+echo '[ * ] Update permissions'
+setfacl -m "g:hestia-users:---" "$HESTIA"
+
+
+if [[ ! -e /etc/hestiacp/hestia.conf ]]; then
+    echo '[ * ] Create global Hestia config'
+
+    mkdir -p /etc/hestiacp
+    echo -e "# Do not edit this file, will get overwritten on next upgrade, use /etc/hestiacp/local.conf instead\n\nexport HESTIA='/usr/local/hestia'\n\n[[ -f /etc/hestiacp/local.conf ]] && source /etc/hestiacp/local.conf" > /etc/hestiacp/hestia.conf
+fi