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
minor improvements
[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 329e2f6220caa87a16eaf66a13f4937e60d43e5e..539f2eb6c3badfe173022b0f7fc0e05959bdfebd 100755
(executable)
--- a/
fai/config/scripts/DEBIAN/10-rootpw
+++ b/
fai/config/scripts/DEBIAN/10-rootpw
@@
-7,11
+7,6
@@
if [ -n "$ROOTPW" ]; then
$ROOTCMD chpasswd --encrypted <<< "root:${ROOTPW}"
elif [ -n "$username" ]; then
$ROOTCMD usermod -L root
$ROOTCMD chpasswd --encrypted <<< "root:${ROOTPW}"
elif [ -n "$username" ]; then
$ROOTCMD usermod -L root
- # enable sudo for user
- ainsl /etc/sudoers "$username ALL = ALL"
- if [ ! -f $target/usr/bin/sudo ]; then
- echo "WARNING. Package sudo is not installed"
- fi
fi
exit $error
fi
exit $error