From d231cdd49925192a4a279c9151e057ec582d38a7 Mon Sep 17 00:00:00 2001 From: James Swineson Date: Tue, 7 Jan 2020 11:51:22 +0000 Subject: [PATCH] workaround https://github.com/Jamesits/vps2routeros/issues/3 --- menhera.sh | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/menhera.sh b/menhera.sh index e916401..1138888 100755 --- a/menhera.sh +++ b/menhera.sh @@ -12,15 +12,36 @@ NEWROOT="" # fix possible PATH problems export PATH="$PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" +menhera::reset_sshd_config() { + cat > /etc/ssh/sshd_config <&2 + echo "ERROR: Cannot restart SSH server, init system not recoginzed" >&2 exit 1 fi } @@ -31,7 +52,7 @@ menhera::__compat_reload_init() { elif [ -x "$(command -v telinit)" ]; then telinit u else - echo "ERROR: Cannot re-exec init" >&2 + echo "ERROR: Cannot re-exec init, init system not recoginzed" >&2 exit 1 fi }