From: Christian Heller Date: Sun, 7 Feb 2016 21:18:29 +0000 (+0100) Subject: Allow user sudo on thinkpads. X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/new_day?a=commitdiff_plain;h=7e65ff0da2133434d1bf0bcec8b5d496b0e1cc64;p=config Allow user sudo on thinkpads. --- diff --git a/jessie_postinstall.sh b/jessie_postinstall.sh index 08b34ab..a14dcce 100755 --- a/jessie_postinstall.sh +++ b/jessie_postinstall.sh @@ -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/'