iankelling.org
/
git
/
automated-distro-installer
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
update to db59a1a2dd 2019-03-07
[automated-distro-installer]
/
fai
/
config
/
scripts
/
DEBIAN
/
10-rootpw
diff --git
a/fai/config/scripts/DEBIAN/10-rootpw
b/fai/config/scripts/DEBIAN/10-rootpw
index 7a7f6177a30e398311f8b1659f61114487947767..bb77d1a30f5fe0eb2df8dc43d5abbfc8b80dcdb3 100755
(executable)
--- a/
fai/config/scripts/DEBIAN/10-rootpw
+++ b/
fai/config/scripts/DEBIAN/10-rootpw
@@
-7,6
+7,8
@@
if [ -n "$ROOTPW" ]; then
$ROOTCMD usermod -p "$ROOTPW" root
else
$ROOTCMD usermod -L root
+ # enable sudo for user
+ ainsl /etc/sudoers "$username ALL = ALL"
fi
exit $error