diff --git a/ct/alpine-adguard.sh b/ct/alpine-adguard.sh index f36ca7c4..248aa7f2 100644 --- a/ct/alpine-adguard.sh +++ b/ct/alpine-adguard.sh @@ -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" diff --git a/ct/alpine-docker.sh b/ct/alpine-docker.sh index 87c04d1c..a7b08ba6 100644 --- a/ct/alpine-docker.sh +++ b/ct/alpine-docker.sh @@ -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" diff --git a/ct/alpine-grafana.sh b/ct/alpine-grafana.sh index dd5283ab..7cb26ae6 100644 --- a/ct/alpine-grafana.sh +++ b/ct/alpine-grafana.sh @@ -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" diff --git a/ct/alpine-vaultwarden.sh b/ct/alpine-vaultwarden.sh index 0eddef93..45ea5390 100644 --- a/ct/alpine-vaultwarden.sh +++ b/ct/alpine-vaultwarden.sh @@ -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" diff --git a/ct/alpine-zigbee2mqtt.sh b/ct/alpine-zigbee2mqtt.sh index 51ec6030..55df4544 100644 --- a/ct/alpine-zigbee2mqtt.sh +++ b/ct/alpine-zigbee2mqtt.sh @@ -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" diff --git a/install/alpine-adguard-install.sh b/install/alpine-adguard-install.sh index 4dd81790..aa9b09ae 100644 --- a/install/alpine-adguard-install.sh +++ b/install/alpine-adguard-install.sh @@ -33,3 +33,4 @@ $STD /opt/AdGuardHome/AdGuardHome -s start $STD msg_ok "Installed Alpine-AdGuard" motd_ssh +root \ No newline at end of file diff --git a/install/alpine-docker-install.sh b/install/alpine-docker-install.sh index ac7dce79..4ed450e5 100644 --- a/install/alpine-docker-install.sh +++ b/install/alpine-docker-install.sh @@ -59,3 +59,4 @@ if echo "$prompt" | grep -Eq "^(y|yes)$"; then fi motd_ssh +root \ No newline at end of file diff --git a/install/alpine-grafana-install.sh b/install/alpine-grafana-install.sh index 86f1e97d..d20a7aca 100644 --- a/install/alpine-grafana-install.sh +++ b/install/alpine-grafana-install.sh @@ -29,3 +29,4 @@ $STD rc-update add grafana default msg_ok "Installed Grafana" motd_ssh +root \ No newline at end of file diff --git a/install/alpine-vaultwarden-install.sh b/install/alpine-vaultwarden-install.sh index 952922e7..6c6f90a5 100644 --- a/install/alpine-vaultwarden-install.sh +++ b/install/alpine-vaultwarden-install.sh @@ -36,3 +36,4 @@ $STD rc-update add vaultwarden default msg_ok "Installed Alpine-Vaultwarden" motd_ssh +root \ No newline at end of file diff --git a/install/alpine-zigbee2mqtt-install.sh b/install/alpine-zigbee2mqtt-install.sh index f3698db9..4abf334e 100644 --- a/install/alpine-zigbee2mqtt-install.sh +++ b/install/alpine-zigbee2mqtt-install.sh @@ -26,3 +26,4 @@ $STD apk add zigbee2mqtt msg_ok "Installed Alpine-Zigbee2MQTT" motd_ssh +root \ No newline at end of file diff --git a/misc/alpine-install.func b/misc/alpine-install.func index f2f74a08..af32878f 100644 --- a/misc/alpine-install.func +++ b/misc/alpine-install.func @@ -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 +} \ No newline at end of file