Initial commit
This commit is contained in:
commit
295a111cec
89 changed files with 2897 additions and 0 deletions
12
config/scripts/DEBIAN/10-rootpw
Executable file
12
config/scripts/DEBIAN/10-rootpw
Executable file
|
|
@ -0,0 +1,12 @@
|
|||
#! /bin/bash
|
||||
|
||||
error=0; trap 'error=$(($?>$error?$?:$error))' ERR # save maximum error code
|
||||
|
||||
# set root password
|
||||
if [ -n "$ROOTPW" ]; then
|
||||
$ROOTCMD chpasswd --encrypted <<< "root:${ROOTPW}"
|
||||
else
|
||||
$ROOTCMD usermod -L root
|
||||
fi
|
||||
|
||||
exit $error
|
||||
Reference in a new issue