[fix] minfix

This commit is contained in:
xdrm-brackets 2017-07-24 18:37:54 +02:00
parent cca5071ac3
commit b39bd55e3f
2 changed files with 7 additions and 7 deletions

View File

@ -51,17 +51,17 @@ test $? -eq 0 \
|| failexit;
BRANCH=$(sudo cat /home/sats/satsd/conf/machine.branch) > /dev/null;
BRANCH=$(sudo -u sats cat /home/sats/satsd/conf/machine.branch) > /dev/null;
# (2) With git if installed #
slog " * 7. Cloning source";
if `sudo -u sats test -d /home/sats/satsd/source`; then
slog " > done (already cloned)";
else
sudo -u sats git clone -b $BRANCH ssh://smmp-server/satsd/git /home/sats/satsd/source \
sudo rm -r /home/sats/satsd/source;
fi;
sudo -u sats git clone -b $BRANCH ssh://smmp-server/satsd/git /home/sats/satsd/source \
&& slog " > done" \
|| failexit;
fi;

View File

@ -11,4 +11,4 @@ RemainAfterExit=yes
User=sats
Group=sats
ExecStart=/usr/sbin/test -e /target/sync
ExecStart=/usr/bin/test -e /target/sync