From: Ian Kelling Date: Wed, 2 Dec 2020 01:29:25 +0000 (-0500) Subject: cleanup primary-setup calling logic X-Git-Url: https://iankelling.org/git/?a=commitdiff_plain;h=1e168185c8223a819a4084b4149c353b03f8c832;p=distro-setup cleanup primary-setup calling logic --- diff --git a/distro-begin b/distro-begin index 905d36d..0950719 100755 --- a/distro-begin +++ b/distro-begin @@ -561,7 +561,7 @@ fi ##### setup email -mail-setup +primary-setup #### ubuntu nicety if isubuntu; then diff --git a/mail-setup b/mail-setup index 23c4c0d..e0aa6aa 100755 --- a/mail-setup +++ b/mail-setup @@ -3,11 +3,8 @@ # Copyright (C) 2019 Ian Kelling # SPDX-License-Identifier: AGPL-3.0-or-later -# todo, primary-setup doesnt get called on distro-begin # todo: sm pull really needs to execute as systemd else it will always fail # because of journal reload -# -# todo: bbk -t kw didn't remount /p to a new subvol # todo setup better backup/sync of MAIL_HOST emails diff --git a/primary-setup b/primary-setup index 08ee7a5..9894f3f 100755 --- a/primary-setup +++ b/primary-setup @@ -22,8 +22,9 @@ if [[ $1 ]]; then new_host=$HOSTNAME fi m sed -ri "s/MAIL_HOST=.*/MAIL_HOST=$new_host/" /a/bin/bash_unpublished/source-state - source /a/bin/bash_unpublished/source-state fi +source /a/bin/bash_unpublished/source-state + if dpkg -s rss2email &>/dev/null; then if [[ $HOSTNAME == "$MAIL_HOST" ]]; then