summaryrefslogtreecommitdiff
path: root/install-itzks-workstation
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-01-31 00:02:00 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-01-31 00:02:00 +0100
commite2d28d78a8ed94e5d41aa07fc980ff7b07df042c (patch)
tree98f9600b0f0e2c31c6d0ac304a1bcdcf0eb88131 /install-itzks-workstation
parent4171750816376bd7622b698cebf5c8d56218bb04 (diff)
downloaditzks-install-script-e2d28d78a8ed94e5d41aa07fc980ff7b07df042c.tar.gz
itzks-install-script-e2d28d78a8ed94e5d41aa07fc980ff7b07df042c.tar.bz2
itzks-install-script-e2d28d78a8ed94e5d41aa07fc980ff7b07df042c.zip
forget user input once not needed anymore; esp. don't leak the WiFi password by accident
Diffstat (limited to 'install-itzks-workstation')
-rw-r--r--install-itzks-workstation7
1 files changed, 7 insertions, 0 deletions
diff --git a/install-itzks-workstation b/install-itzks-workstation
index fa234f2..535d88a 100644
--- a/install-itzks-workstation
+++ b/install-itzks-workstation
@@ -67,6 +67,7 @@ case ${answer:0:1} in
:
;;
esac
+unset answer
####################
@@ -137,11 +138,16 @@ read -p 'Wie lautet die SSID? ' ssid
sed -i 's/@SSID@/'"$ssid"'/' /etc/NetworkManager/system-connections/SSID.in
read -p 'Wie lautet das zugehörige Passwort? ' passw
sed -i 's/@password@/'"$passw"'/' /etc/NetworkManager/system-connections/SSID.in
+unset passw
+
+# move tweaked template to real configuration file
mv /etc/NetworkManager/system-connections/SSID.in /etc/NetworkManager/system-connections/"$ssid"
# Set permissions on generated file
chmod go-rwx /etc/NetworkManager/system-connections/"$ssid"
+unset ssid
+
# Write new content for /usr/share/debian-edu-config/tools/wpad-extract.
# Workaround for Debian bug #888829. Probably fixed with debian-edu-config 1.929+deb9u1.
@@ -185,6 +191,7 @@ es mw101.intern heißen. [ENTER]'
read -p 'Wie lautet der Hostname (ohne Domain)? ' myhost
hostnamectl set-hostname "$myhost"
export HOSTNAME="$myhost"
+unset myhost
# To be sure restart the following services
invoke-rc.d rsyslog restart