File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed
Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 3838 cp -r /var/lib/phpmyadmin/* /root/hst_backup_man/var_phmyadmin
3939
4040 echo ' [ * ] Remove PHPmyAdmin via ATP'
41- apt-get autoremove phpmyadmin
41+ apt-mark hold phpmyadmin
4242
4343 echo ' [ * ] Delete possible trail'
4444 # make sure everything is deleted
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ if [[ $REPLY =~ ^[Yy]$ ]]
3030then
3131 version=$( cat /usr/share/roundcube/index.php | grep -o -E ' [0-9].[0-9].[0-9]+' | head -1) ;
3232 # Backup database
33+ echo " #version $version " >> ~ /roundcube.sql
3334 echo " SET FOREIGN_KEY_CHECKS = 0;" >> ~ /roundcube.sql
3435 mysqldump --add-drop-table roundcube >> ~ /roundcube.sql
3536 echo " SET FOREIGN_KEY_CHECKS = 1;" >> ~ /roundcube.sql
4445 # Install roundcube
4546 $HESTIA /bin/v-add-sys-roundcube
4647 # restore backup
48+ echo " SET FOREIGN_KEY_CHECKS = 0;" > ~ /drop_all_tables.sql
49+ ( mysqldump --add-drop-table --no-data -u root roundcube | grep ' DROP TABLE' ) >> ./drop_all_tables.sql
50+ echo " SET FOREIGN_KEY_CHECKS = 1;" >> ~ /drop_all_tables.sql
51+ mysql -u root roundcube < ./drop_all_tables.sql
52+
4753 mysql roundcube < ~ /roundcube.sql
4854 /var/lib/roundcube/bin/update.sh --version " $version "
4955fi
Original file line number Diff line number Diff line change 117117if [ ! -z " $WEBMAIL_SYSTEM " ]; then
118118 for user in $( $BIN /v-list-users plain | cut -f1) ; do
119119 for domain in $( $BIN /v-list-mail-domains $user plain | cut -f1) ; do
120- $BIN /v-add-mail-domain-webmail $user $domain
120+ $BIN /v-add-mail-domain-webmail $user $domain ' ' no
121121 done
122122 done
123123fi
You can’t perform that action at this time.
0 commit comments