|
|
@@ -0,0 +1,30 @@
|
|
|
+#!/bin/bash
|
|
|
+
|
|
|
+# Hestia Control Panel upgrade script for target version 1.6.0
|
|
|
+
|
|
|
+#######################################################################################
|
|
|
+####### 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. #######
|
|
|
+#######################################################################################
|
|
|
+
|
|
|
+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' 'false'
|
|
|
+
|
|
|
+# Adding LE autorenew cronjob if there are none
|
|
|
+if [ -z "$(grep v-update-lets $HESTIA/data/users/admin/cron.conf)" ]; then
|
|
|
+ min=$(generate_password '012345' '2')
|
|
|
+ hour=$(generate_password '1234567' '1')
|
|
|
+ command="sudo $BIN/v-update-letsencrypt-ssl"
|
|
|
+ $BIN/v-add-cron-job 'admin' "$min" "$hour" '*' '*' '*' "$command"
|
|
|
+fi
|