git://git.onelab.eu
/
bootcd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27fd285
)
notify when creating site_admin account
author
Thierry Parmentelat
<thierry.parmentelat@inria.fr>
Tue, 25 Feb 2020 10:07:58 +0000
(11:07 +0100)
committer
Thierry Parmentelat
<thierry.parmentelat@inria.fr>
Tue, 25 Feb 2020 10:08:13 +0000
(11:08 +0100)
prep.sh
patch
|
blob
|
history
diff --git
a/prep.sh
b/prep.sh
index
c9308da
..
1723a2c
100755
(executable)
--- a/
prep.sh
+++ b/
prep.sh
@@
-51,6
+51,7
@@
pl_root_mkfedora $bootcd $pldistro $pkgsfile
pl_root_tune_image $bootcd
# Add site_admin console account to BootCD: with root priv, and self passwd
+echo "* Creating site_admin account"
CRYPT_SA_PASSWORD=$(python3 -c "import crypt, random, string; salt = [random.choice(string.ascii_letters + string.digits + \"./\") for i in range(0,8)] ; print(crypt.crypt('site_admin', '\$1\$' + \"\".join(salt) + '\$'))")
chroot ${bootcd} /usr/sbin/useradd -p "$CRYPT_SA_PASSWORD" -o -g 0 -u 0 -m site_admin