default, no root password for alpine-* install

This commit is contained in:
tteckster 2023-03-25 06:12:45 -04:00 committed by GitHub
parent 35f5b8413d
commit 6829e1121d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 22 additions and 5 deletions

View File

@ -31,7 +31,7 @@ catch_errors
function default_settings() {
CT_TYPE="1"
PW="-password alpine"
PW=""
CT_ID=$NEXTID
HN=$NSAPP
DISK_SIZE="$var_disk"

View File

@ -31,7 +31,7 @@ catch_errors
function default_settings() {
CT_TYPE="1"
PW="-password alpine"
PW=""
CT_ID=$NEXTID
HN=$NSAPP
DISK_SIZE="$var_disk"

View File

@ -31,7 +31,7 @@ catch_errors
function default_settings() {
CT_TYPE="1"
PW="-password alpine"
PW=""
CT_ID=$NEXTID
HN=$NSAPP
DISK_SIZE="$var_disk"

View File

@ -31,7 +31,7 @@ catch_errors
function default_settings() {
CT_TYPE="1"
PW="-password alpine"
PW=""
CT_ID=$NEXTID
HN=$NSAPP
DISK_SIZE="$var_disk"

View File

@ -31,7 +31,7 @@ catch_errors
function default_settings() {
CT_TYPE="1"
PW="-password alpine"
PW=""
CT_ID=$NEXTID
HN=$NSAPP
DISK_SIZE="$var_disk"

View File

@ -33,3 +33,4 @@ $STD /opt/AdGuardHome/AdGuardHome -s start
$STD msg_ok "Installed Alpine-AdGuard"
motd_ssh
root

View File

@ -59,3 +59,4 @@ if echo "$prompt" | grep -Eq "^(y|yes)$"; then
fi
motd_ssh
root

View File

@ -29,3 +29,4 @@ $STD rc-update add grafana default
msg_ok "Installed Grafana"
motd_ssh
root

View File

@ -36,3 +36,4 @@ $STD rc-update add vaultwarden default
msg_ok "Installed Alpine-Vaultwarden"
motd_ssh
root

View File

@ -26,3 +26,4 @@ $STD apk add zigbee2mqtt
msg_ok "Installed Alpine-Zigbee2MQTT"
motd_ssh
root

View File

@ -114,3 +114,15 @@ motd_ssh() {
$STD /etc/init.d/sshd start
fi
}
customize() {
msg_info "Customizing Container"
bash -c "/etc/init.d/syslog stop;rc-update del syslog boot;passwd -d root" >/dev/null 2>&1
msg_ok "Customized Container"
}
root() {
if ! getent shadow root | grep -q '^root:[^:]*:\?\$'; then
customize
fi
}