mirror of
https://github.com/tteck/Proxmox.git
synced 2024-12-25 16:38:51 +01:00
default, no root password for alpine-* install
This commit is contained in:
parent
35f5b8413d
commit
6829e1121d
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -33,3 +33,4 @@ $STD /opt/AdGuardHome/AdGuardHome -s start
|
||||
$STD msg_ok "Installed Alpine-AdGuard"
|
||||
|
||||
motd_ssh
|
||||
root
|
@ -59,3 +59,4 @@ if echo "$prompt" | grep -Eq "^(y|yes)$"; then
|
||||
fi
|
||||
|
||||
motd_ssh
|
||||
root
|
@ -29,3 +29,4 @@ $STD rc-update add grafana default
|
||||
msg_ok "Installed Grafana"
|
||||
|
||||
motd_ssh
|
||||
root
|
@ -36,3 +36,4 @@ $STD rc-update add vaultwarden default
|
||||
msg_ok "Installed Alpine-Vaultwarden"
|
||||
|
||||
motd_ssh
|
||||
root
|
@ -26,3 +26,4 @@ $STD apk add zigbee2mqtt
|
||||
msg_ok "Installed Alpine-Zigbee2MQTT"
|
||||
|
||||
motd_ssh
|
||||
root
|
@ -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
|
||||
}
|
Loading…
Reference in New Issue
Block a user