Browse Source

Update hst-install-debian.sh (#2466)

* Update hst-install-debian.sh

* Create 1.5.11.sh

* Update 1.5.11.sh

Co-authored-by: Jaap Marcus <[email protected]>
Tamás 4 years ago
parent
commit
055f44b563
2 changed files with 22 additions and 8 deletions
  1. 0 8
      install/hst-install-debian.sh
  2. 22 0
      install/upgrade/versions/1.5.11.sh

+ 0 - 8
install/hst-install-debian.sh

@@ -1898,14 +1898,6 @@ fi
 #                   Configure IP                           #
 #----------------------------------------------------------#
 
-# Roundcube permissions fix
-if [ "$exim" = 'yes' ] && [ "$mysql" = 'yes' ]; then
-    if [ ! -d "/var/log/roundcube" ]; then
-        mkdir /var/log/roundcube
-    fi
-    chown admin:admin /var/log/roundcube
-fi
-
 # Configuring system IPs
 echo "[ * ] Configuring System IP..."
 $HESTIA/bin/v-update-sys-ip > /dev/null 2>&1

+ 22 - 0
install/upgrade/versions/1.5.11.sh

@@ -0,0 +1,22 @@
+#!/bin/bash
+
+# Hestia Control Panel upgrade script for target version 1.5.11
+
+#######################################################################################
+#######                      Place additional commands below.                   #######
+#######################################################################################
+####### Pass through information to the end user in case of a issue or problem  #######
+#######                                                                         #######
+####### Use add_upgrade_message "My message here" to include a message          #######
+####### in the upgrade notification email. Example:                             #######
+#######                                                                         #######
+####### add_upgrade_message "My message here"                                   #######
+#######                                                                         #######
+####### You can use \n within the string to create new lines.                   #######
+#######################################################################################
+
+# Fix Roundcube logdir permission
+
+if [ -d "/var/log/roundcube" ]; then
+    chown www-data:www-data /var/log/roundcube
+fi