From 04088bc049b8fc41421228cc757f115dc898f03d Mon Sep 17 00:00:00 2001 From: velvettear Date: Wed, 14 Apr 2021 10:21:15 +0200 Subject: [PATCH] moved removal of 'motd' to the end of the script --- alpine_install.sh | 6 +++--- debian_install.sh | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/alpine_install.sh b/alpine_install.sh index 576ed98..847cd75 100755 --- a/alpine_install.sh +++ b/alpine_install.sh @@ -29,9 +29,6 @@ fi [[ "$repository_protocol" ]] && printf "|> setting protocol for all repositories to '"$repository_protocol"'\n" && sed -i "s/http/$repository_protocol/g" "/etc/apk/repositories" [[ "$repository_version" ]] && printf "|> setting version for all repositories to '"$repository_version"'\n" && sed -i "s/v3.12/$repository_version/g" "/etc/apk/repositories" -printf "|> removing motd...\n" -rm -f "/etc/motd" - printf "|> updating packages...\n" apk update --progress @@ -126,6 +123,9 @@ ln -s "/etc/velvettear/shell/zshrc_root.sh" "/root/.zshrc" ln -s "/etc/velvettear/shell/zprofile" "/home/$user/.zprofile" ln -s "/etc/velvettear/shell/zprofile" "/root/.zprofile" +printf "|> removing motd...\n" +rm -f "/etc/motd" + printf "|>> alpine install script finished!\n" printf "|>> remote access: 'ssh $user@$(ip -f inet -o address | awk '/eth0/ {print $4}' | cut -d "/" -f1)'\n" diff --git a/debian_install.sh b/debian_install.sh index a812c85..d77904f 100755 --- a/debian_install.sh +++ b/debian_install.sh @@ -24,9 +24,6 @@ if [[ ! "$password" ]]; then [[ "$password_confirmation" != "$password" ]] && printf "|> error: passwords do not match\n" && exit 1 fi -printf "|> removing motd...\n" -rm -f "/etc/motd" - printf "|> updating packages...\n" apt-get update -y @@ -128,6 +125,9 @@ ln -s "/etc/velvettear/shell/zshrc_root.sh" "/root/.zshrc" ln -s "/etc/velvettear/shell/zprofile" "/home/$user/.zprofile" ln -s "/etc/velvettear/shell/zprofile" "/root/.zprofile" +printf "|> removing motd...\n" +rm -f "/etc/motd" + printf "|>> debian install script finished!\n" printf "|>> remote access: 'ssh $user@$(ip -f inet -o address | awk '/eth0/ {print $4}' | cut -d "/" -f1)'\n"