summaryrefslogtreecommitdiff
path: root/src/flufigut-client.sh
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2012-10-13 13:26:39 +0200
committerChristian Pointner <equinox@spreadspace.org>2012-10-13 13:26:39 +0200
commit34ec8044576db1395451af89f8eee31fbeb0882b (patch)
treef5e13189abc8449cc7e5cd1bd5199f64d5a22273 /src/flufigut-client.sh
parentfixed typo (diff)
deployment works now
Diffstat (limited to 'src/flufigut-client.sh')
-rwxr-xr-xsrc/flufigut-client.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/flufigut-client.sh b/src/flufigut-client.sh
index 91591fd..b245d33 100755
--- a/src/flufigut-client.sh
+++ b/src/flufigut-client.sh
@@ -51,11 +51,12 @@ if [ "install" = "$1" ]; then
exit 1
fi
adduser flufigut --disabled-password --home /var/lib/flufigut --gecos "flufigut management" --shell "/bin/sh"
+ adduser flufigut flumotion
mkdir -p /var/lib/flufigut/.ssh
echo 'command="/usr/local/bin/flufigut-client.sh",no-X11-forwarding,no-agent-forwarding,no-port-forwarding '$pubkey > /var/lib/flufigut/.ssh/authorized_keys
chown -R flufigut:flufigut /var/lib/flufigut/.ssh
chmod 600 /var/lib/flufigut/.ssh/authorized_keys
- echo "flufigut ALL = (flumotion) NOPASSWD: $DAEMON" >> /etc/sudoers
+ echo "flufigut ALL = (flumotion) NOPASSWD: $DAEMON, /bin/tar" >> /etc/sudoers
fi
echo "successfully installed flufigut client."
@@ -82,6 +83,9 @@ param=`echo $SSH_ORIGINAL_COMMAND | awk '{ print $2 }'`
case "$command" in
install)
echo -n "install files from $param ... "
+ cd $CONF_DIR
+ sudo -u flumotion tar --strip-components=1 -xzf "$param"
+ rm "$param"
echo "done."
;;
start)