diff options
author | Daniil Baturin <daniil@baturin.org> | 2014-10-08 12:12:49 +0200 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2014-10-08 12:12:49 +0200 |
commit | 6643450f498b04b28f172ad411cdc92c13f70411 (patch) | |
tree | 33aae46fc49b64a158dcda88d925d8480c930b79 /etc | |
parent | 4f2f5df4798278c0ea18202b11854bc9c0559217 (diff) | |
download | vyatta-cfg-system-6643450f498b04b28f172ad411cdc92c13f70411.tar.gz vyatta-cfg-system-6643450f498b04b28f172ad411cdc92c13f70411.zip |
Bug #335, run the EC2 key fetching script as vyattacfg.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/init.d/ec2-fetch-ssh-public-key | 6 |
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 |