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