From b796dca4bae9637c8a0e328194a8ac2d2a13c2ab Mon Sep 17 00:00:00 2001 From: Deon George Date: Sat, 24 Apr 2021 23:44:08 +1000 Subject: [PATCH] Only create sshd if it doesnt exist --- init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init b/init index 4da93ba..a99f1c6 100755 --- a/init +++ b/init @@ -22,7 +22,7 @@ if [ -r ${USERS} ]; then fi done - mkdir /run/sshd && /usr/sbin/sshd + ([ -d /run/sshd ] || mkdir /run/sshd) && /usr/sbin/sshd fi exec /sbin/doorparty-connector /etc/doorparty-connector.ini