Code refactoring

This commit is contained in:
tteckster 2023-05-15 07:39:30 -04:00 committed by GitHub
parent b09f213c84
commit c12f2773e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
97 changed files with 103 additions and 119 deletions

View file

@ -117,13 +117,9 @@ motd_ssh() {
}
customize() {
if [[ "$PASSWORD" == "" ]]; then
msg_info "Customizing Container"
bash -c "passwd -d root" >/dev/null 2>&1
msg_ok "Customized Container"
}
root() {
if ! getent shadow root | grep -q '^root:[^:]*:\?\$'; then
customize
fi
}
}