Browse Source

Update install.func

Tweak for Debian 12
tteckster 2 years ago
parent
commit
59110997d5
1 changed files with 3 additions and 0 deletions
  1. 3 0
      misc/install.func

+ 3 - 0
misc/install.func

@@ -124,6 +124,9 @@ motd_ssh() {
     sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
     systemctl restart sshd
   fi
+  if [[ "$PCT_OSVERSION" == "12" ]]; then
+    $STD systemctl disable systemd-networkd-wait-online.service
+  fi
 }
 
 # This function customizes the container by modifying the getty service and enabling auto-login for the root user