From cb0011d2d4d1c79aaa088d208ab409e9f3529b62 Mon Sep 17 00:00:00 2001 From: velvettear Date: Mon, 12 Apr 2021 00:24:50 +0200 Subject: [PATCH] suppress some log messages --- debian_install.sh | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/debian_install.sh b/debian_install.sh index f0d183a..e7bb26b 100755 --- a/debian_install.sh +++ b/debian_install.sh @@ -66,18 +66,18 @@ useradd -m -g users -s "/bin/zsh" "$user" printf "|> setting password for user '$user'...\n" echo -e "$password\n$password" | passwd "$user" -printf "|> adding user '$user' to group 'disk'...\n" && addgroup "$user" disk -printf "|> adding user '$user' to group 'lp'...\n" && addgroup "$user" lp -printf "|> adding user '$user' to group 'wheel'...\n" && addgroup "$user" wheel -printf "|> adding user '$user' to group 'floppy'...\n" && addgroup "$user" floppy -printf "|> adding user '$user' to group 'audio'...\n" && addgroup "$user" audio -printf "|> adding user '$user' to group 'cdrom'...\n" && addgroup "$user" cdrom -printf "|> adding user '$user' to group 'dialout'...\n" && addgroup "$user" dialout -printf "|> adding user '$user' to group 'tape'...\n" && addgroup "$user" tape -printf "|> adding user '$user' to group 'video'...\n" && addgroup "$user" video -printf "|> adding user '$user' to group 'netdev'...\n" && addgroup "$user" netdev -printf "|> adding user '$user' to group 'games'...\n" && addgroup "$user" games -printf "|> adding user '$user' to group 'sudo'...\n" && addgroup "$user" sudo +printf "|> adding user '$user' to group 'disk'...\n" && addgroup "$user" disk > /dev/null +printf "|> adding user '$user' to group 'lp'...\n" && addgroup "$user" lp > /dev/null +printf "|> adding user '$user' to group 'wheel'...\n" && addgroup "$user" wheel > /dev/null +printf "|> adding user '$user' to group 'floppy'...\n" && addgroup "$user" floppy > /dev/null +printf "|> adding user '$user' to group 'audio'...\n" && addgroup "$user" audio > /dev/null +printf "|> adding user '$user' to group 'cdrom'...\n" && addgroup "$user" cdrom > /dev/null +printf "|> adding user '$user' to group 'dialout'...\n" && addgroup "$user" dialout > /dev/null +printf "|> adding user '$user' to group 'tape'...\n" && addgroup "$user" tape > /dev/null +printf "|> adding user '$user' to group 'video'...\n" && addgroup "$user" video > /dev/null +printf "|> adding user '$user' to group 'netdev'...\n" && addgroup "$user" netdev > /dev/null +printf "|> adding user '$user' to group 'games'...\n" && addgroup "$user" games > /dev/null +printf "|> adding user '$user' to group 'sudo'...\n" && addgroup "$user" sudo > /dev/null printf "|> modifying sudoers...\n" sed -i "s/# %sudo ALL=(ALL) ALL/%sudo ALL=(ALL) ALL/" "/etc/sudoers" @@ -93,8 +93,8 @@ dropbearkey -t "rsa" -s "4096" -f "/etc/dropbear/dropbear_rsa_host_key" dropbearkey -t "dss" -s "1024" -f "/etc/dropbear/dropbear_dss_host_key" dropbearkey -t "ecdsa" -s "521" -f "/etc/dropbear/dropbear_ecdsa_host_key" -printf "|> stopping and disabling sshd...\n" -systemctl disable sshd --now +printf "|> disabling sshd...\n" +systemctl disable sshd printf "|> enabling and starting dropbear...\n" systemctl enable dropbear --now