[fix] minfix
This commit is contained in:
parent
cca5071ac3
commit
b39bd55e3f
|
@ -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;
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -11,4 +11,4 @@ RemainAfterExit=yes
|
|||
User=sats
|
||||
Group=sats
|
||||
|
||||
ExecStart=/usr/sbin/test -e /target/sync
|
||||
ExecStart=/usr/bin/test -e /target/sync
|
Loading…
Reference in New Issue