moved removal of 'motd' to the end of the script

This commit is contained in:
Daniel Sommer 2021-04-14 10:21:15 +02:00
parent 64ef1b3830
commit 04088bc049
2 changed files with 6 additions and 6 deletions

View file

@ -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"

View file

@ -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"