Fixed daemon script

This commit is contained in:
xdrm-brackets 2017-09-26 17:44:11 +02:00
parent 6b8fd0f8a0
commit b6f3852e32
1 changed files with 4 additions and 4 deletions

8
daemon
View File

@ -1,9 +1,9 @@
#!/bin/sh #!/bin/bash
ABSPATH=$( dirname $(realpath $0) ); ABSPATH=$( dirname $(realpath $0) );
source $ABSPATH/include/bash/const; source $ABSPATH/lib/include/bash/const;
source $ABSPATH/include/bash/func; source $ABSPATH/lib/include/bash/func;
# (1) Check synchronization done # # (1) Check synchronization done #
if [ ! -e /target/sync ]; then if [ ! -e /target/sync ]; then
@ -13,5 +13,5 @@ fi;
# (2) Get the list of etrees # # (2) Get the list of etrees #
cat $ETREE_CONF | \ cat $ETREE_CONF | \
while read etree; do while read etree; do
sudo systemctl restart sats-feature@$ETREE_CONF.service; sudo systemctl restart sats-feature@$etree.service;
done; done;