We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d78b4d0 commit 383be0aCopy full SHA for 383be0a
1 file changed
install.sh
@@ -224,3 +224,10 @@ case "${1:-}" in
224
;;
225
esac
226
227
+# Run enable ssh service at the end to avoid ssh connection lost when changing ssh port if user forgets to enable ssh service after changing port
228
+# Enable ssh service also if ssh is disabled
229
+if ! systemctl is-enabled ssh >/dev/null 2>&1; then
230
+ echo "Enabling SSH service..."
231
+ sudo systemctl enable ssh
232
+ echo "✓ SSH service enabled"
233
+fi
0 commit comments