if $restore_new_btrbk; then
e WARNING: due to failure, btrbk.timer may need manual restoration:
e $new_shell sudo systemctl start btrbk.timer
if $restore_new_btrbk; then
e WARNING: due to failure, btrbk.timer may need manual restoration:
e $new_shell sudo systemctl start btrbk.timer
-if [[ $old_host != "$MAIL_HOST" ]]; then
- read -r -p "warning: \$old_host != \$MAIL_HOST: $old_host != $MAIL_HOST, proceed? y/N "
- if [[ $REPLY != [yY] ]]; then
- exit 1
- fi
+if [[ $old_hostname != "$MAIL_HOST" ]] && ! $force; then
+ err "\$old_hostname($old_hostname) != \$MAIL_HOST($MAIL_HOST). Rerun with --force if you really want this."
+ mexit 1
########### end initial processing, begin actually modifying things ##########
if $new_shell systemctl is-active btrbk.timer; then
m $new_shell sudo systemctl stop btrbk.timer
########### end initial processing, begin actually modifying things ##########
if $new_shell systemctl is-active btrbk.timer; then
m $new_shell sudo systemctl stop btrbk.timer