home
·
contact
·
privacy
projects
/
config
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70a844d
)
Allow user sudo on thinkpads.
author
Christian Heller
<c.heller@plomlompom.de>
Sun, 7 Feb 2016 21:18:29 +0000
(22:18 +0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Sun, 7 Feb 2016 21:18:29 +0000
(22:18 +0100)
jessie_postinstall.sh
patch
|
blob
|
history
diff --git
a/jessie_postinstall.sh
b/jessie_postinstall.sh
index 08b34ab8367819c35cdecc8816c96583da5a9c5d..a14dcce8b6623811f273249e158c658e1dcf8b3f 100755
(executable)
--- 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/'