summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--etc/init.d/ec2-fetch-ssh-public-key6
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/init.d/ec2-fetch-ssh-public-key b/etc/init.d/ec2-fetch-ssh-public-key
index 3d081d63..9af8ba1d 100644
--- a/etc/init.d/ec2-fetch-ssh-public-key
+++ b/etc/init.d/ec2-fetch-ssh-public-key
@@ -23,6 +23,12 @@ if [ $? != 0 ]; then
exit 0
fi
+# Hack for config permissions stuff
+if [ $(groups | awk '{print $1}') != 'vyattacfg' ]; then
+ sg vyattacfg $0
+ exit
+fi
+
: ${vyatta_env:=/etc/default/vyatta}
source $vyatta_env