summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Bauer2015-02-09 17:48:54 +0100
committerJonathan Bauer2015-02-09 17:48:54 +0100
commit1d9e68fcdca9679f8f9a86eb81ccd9f0af466519 (patch)
treece06500aab811a5d1c634dc9fdcb9ac0c41dd05b
parent[ssh-auth-keys] start link for service (diff)
downloadtm-scripts-1d9e68fcdca9679f8f9a86eb81ccd9f0af466519.tar.gz
tm-scripts-1d9e68fcdca9679f8f9a86eb81ccd9f0af466519.tar.xz
tm-scripts-1d9e68fcdca9679f8f9a86eb81ccd9f0af466519.zip
[ssh-auth-keys] removed root check - in /root anyway, so pointless
-rwxr-xr-xremote/modules/ssh-auth-keys/data/opt/openslx/scripts/systemd-ssh_auth_keys3
1 files changed, 0 insertions, 3 deletions
diff --git a/remote/modules/ssh-auth-keys/data/opt/openslx/scripts/systemd-ssh_auth_keys b/remote/modules/ssh-auth-keys/data/opt/openslx/scripts/systemd-ssh_auth_keys
index b3c7a6fe..08ad7d2c 100755
--- a/remote/modules/ssh-auth-keys/data/opt/openslx/scripts/systemd-ssh_auth_keys
+++ b/remote/modules/ssh-auth-keys/data/opt/openslx/scripts/systemd-ssh_auth_keys
@@ -3,9 +3,6 @@
AUTH_KEYS_DIR="/root/.ssh/authorized_keys.d/"
AUTH_KEYS_FILE="/root/.ssh/authorized_keys"
-# root-check
-[ "$(id -u)" -ne 0 ] && echo "Need to be root. Exiting." && exit 1
-
# do we even have the directory?
[ ! -d "$AUTH_KEYS_DIR" ] && echo "No such directory: $AUTH_KEYS_DIR" && exit 1