update multiple containers

This commit is contained in:
Thorsten Spille
2026-01-17 21:54:11 +00:00
parent 2f6658f0ae
commit dcceeb5a63
15 changed files with 31 additions and 115 deletions

View File

@@ -23,9 +23,6 @@ cat > /etc/krb5.conf <<EOF
renew_lifetime = 7d
EOF
echo -e "$ZMB_ADMIN_PASS" | kinit -V $ZMB_ADMIN_USER
klist
mv /etc/samba/smb.conf /etc/samba/smb.conf.bak
cat > /etc/samba/smb.conf <<EOF
[global]
@@ -87,6 +84,9 @@ for ZMB_SHARE in "${ZMB_SHARES_ARRAY[@]}" ; do
EOF
done
echo -e "$ZMB_ADMIN_PASS" | kinit -V $ZMB_ADMIN_USER
klist
systemctl restart smbd
echo -e "$ZMB_ADMIN_PASS" | net ads join -U $ZMB_ADMIN_USER createcomputer=Computers