Skip to content

Commit 0d59ba9

Browse files
author
Kristan Kenney
authored
Merge pull request hestiacp#278 from Lupul/bugfix-0502
Fix backup restore was not creating webmail configs Fix UI (edit/web) old values were shown after changing web template option
2 parents a562362 + bdc167c commit 0d59ba9

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

bin/v-restore-user

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ if [ "$mail" != 'no' ] && [ ! -z "$MAIL_SYSTEM" ]; then
588588
cp -f $tmpdir/mail/$domain/$backup_system/$domain.conf $USER_DATA/mail/
589589

590590
# Rebuilding mail config
591-
rebuild_mail_domain_conf
591+
v-rebuild-mail-domains $user
592592

593593
domain_idn=$domain
594594
format_domain_idn
@@ -617,6 +617,14 @@ if [ "$mail" != 'no' ] && [ ! -z "$MAIL_SYSTEM" ]; then
617617
-exec chown $exim_user {} \;
618618

619619
done
620+
621+
# Restarting web server
622+
$BIN/v-restart-web
623+
check_result $? "Web restart failed"
624+
if [ ! -z "$PROXY_SYSTEM" ]; then
625+
$BIN/v-restart-proxy
626+
check_result $? "Proxy restart failed"
627+
fi
620628
fi
621629

622630
# Restoring databases

web/edit/web/index.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -715,6 +715,7 @@
715715
// Set success message
716716
if (empty($_SESSION['error_msg'])) {
717717
$_SESSION['ok_msg'] = __('Changes has been saved.');
718+
header("Location: /edit/web/?domain=" . $v_domain);
718719
}
719720

720721
}

0 commit comments

Comments
 (0)