From 0fb1fb4d7cf01269a3057f0444a5725972b9bd23 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Wed, 18 Oct 2023 16:08:33 +0200 Subject: [PATCH] Fixing postinstall-scripts/init-puppet --- postinstall-scripts/conf-resolver | 5 +++++ postinstall-scripts/create-motd | 5 +++++ postinstall-scripts/init-puppet | 2 +- postinstall-scripts/update-all-packages | 5 +++++ 4 files changed, 16 insertions(+), 1 deletion(-) diff --git a/postinstall-scripts/conf-resolver b/postinstall-scripts/conf-resolver index d02b02a..3fe7bf1 100755 --- a/postinstall-scripts/conf-resolver +++ b/postinstall-scripts/conf-resolver @@ -593,6 +593,11 @@ main() { get_options "$@" check_for_root + + echo + info "Trying to ${CYAN}configure /etc/resolv.conf${NORMAL} ..." + echo + do_backup generate do_nm diff --git a/postinstall-scripts/create-motd b/postinstall-scripts/create-motd index ed4e86f..5334854 100755 --- a/postinstall-scripts/create-motd +++ b/postinstall-scripts/create-motd @@ -584,6 +584,11 @@ generate() { main() { get_options "$@" + + echo + info "Trying to ${CYAN}generate /etc/motd${NORMAL} ..." + echo + generate } diff --git a/postinstall-scripts/init-puppet b/postinstall-scripts/init-puppet index 883d9e2..c60f2e4 100755 --- a/postinstall-scripts/init-puppet +++ b/postinstall-scripts/init-puppet @@ -122,7 +122,7 @@ get_options() { long_options+="${STD_LONG_OPTIONS}" set +e - tmp=$( getopt -o "${short_options}" --long "${long_options}" -n "${BASENAME}" -- "$@" ) + tmp=$( getopt -o "${short_options}" --long "${long_options}" -n "${BASE_NAME}" -- "$@" ) if [[ $? != 0 ]] ; then echo "" >&2 usage >&2 diff --git a/postinstall-scripts/update-all-packages b/postinstall-scripts/update-all-packages index 6ee5479..1b643d8 100755 --- a/postinstall-scripts/update-all-packages +++ b/postinstall-scripts/update-all-packages @@ -443,6 +443,11 @@ main() { get_options "$@" check_for_root + + echo + info "Trying to ${CYAN}updating all packages${NORMAL} ..." + echo + do_distupgrade } -- 2.39.5