|
|
@@ -0,0 +1,36 @@
|
|
|
+#!/bin/bash
|
|
|
+
|
|
|
+# Hestia Control Panel upgrade script for target version 1.8.11
|
|
|
+
|
|
|
+#######################################################################################
|
|
|
+####### Place additional commands below. #######
|
|
|
+#######################################################################################
|
|
|
+####### upgrade_config_set_value only accepts true or false. #######
|
|
|
+####### #######
|
|
|
+####### 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. #######
|
|
|
+#######################################################################################
|
|
|
+
|
|
|
+upgrade_config_set_value 'UPGRADE_UPDATE_WEB_TEMPLATES' 'false'
|
|
|
+upgrade_config_set_value 'UPGRADE_UPDATE_DNS_TEMPLATES' 'false'
|
|
|
+upgrade_config_set_value 'UPGRADE_UPDATE_MAIL_TEMPLATES' 'false'
|
|
|
+upgrade_config_set_value 'UPGRADE_REBUILD_USERS' 'false'
|
|
|
+upgrade_config_set_value 'UPGRADE_UPDATE_FILEMANAGER_CONFIG' 'true'
|
|
|
+
|
|
|
+# Folder paths
|
|
|
+SM_INSTALL_DIR="/var/lib/snappymail"
|
|
|
+SM_CONFIG_DIR="/etc/snappymail"
|
|
|
+SM_LOG="/var/log/snappymail"
|
|
|
+
|
|
|
+if [ -d "/var/lib/snappymail" ]; then
|
|
|
+ chown hestiamail:hestiamail /var/lib/snappymail
|
|
|
+ chown hestiamail:hestiamail /etc/snappymail
|
|
|
+fi
|
|
|
+
|
|
|
+sed -i "s/disable_functions =.*/disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority/g" /etc/php/*/cli/php.ini
|