home · contact · privacy
Allow user sudo on thinkpads.
authorChristian Heller <c.heller@plomlompom.de>
Sun, 7 Feb 2016 21:18:29 +0000 (22:18 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Sun, 7 Feb 2016 21:18:29 +0000 (22:18 +0100)
jessie_postinstall.sh

index 08b34ab8367819c35cdecc8816c96583da5a9c5d..a14dcce8b6623811f273249e158c658e1dcf8b3f 100755 (executable)
@@ -155,6 +155,12 @@ rm -rf /home/plom/config
 su - plom -c 'git clone http://github.com/plomlompom/config /home/plom/config'
 su plom -c '/home/plom/config/bin/symlink.sh '$1' '$2
 
+# Allow user to sudo.
+if [ "$1" = "thinkpad" ]; then
+    apt-get -y install sudo
+    adduser plom sudo
+fi
+
 # Set up editor.
 mkdir -p .vimbackups
 su plom -c 'mkdir -p /home/plom/.vimbackups/'