more fixes
This commit is contained in:
parent
157c952bc5
commit
3121898379
@ -16,9 +16,7 @@ if [ ${MYUSER} != "root" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "*** START ***"
|
echo "*** START ***"
|
||||||
cd ${MYPATH} 2>/dev/null || ( echo "ERROR: could not change to dir"; echo "*** DONE ***"; exit 1 )
|
cd ${MYPATH} 2>/dev/null \
|
||||||
git pull
|
&& ( git pull; cp /opt/bgpblist/etc/systemd/bgpblacklist.service /etc/systemd/system/bgpblacklist.service; systemctl daemon-reload; systemctl restart bgpblacklist.service ) \
|
||||||
cp /opt/bgpblist/etc/systemd/bgpblacklist.service /etc/systemd/system/bgpblacklist.service
|
|| ( echo "ERROR: could not change to dir" )
|
||||||
systemctl daemon-reload
|
|
||||||
systemctl restart bgpblacklist.service
|
|
||||||
echo "*** DONE ***"
|
echo "*** DONE ***"
|
||||||
|
Loading…
Reference in New Issue
Block a user