more fixes

This commit is contained in:
Grzegorz Surmann 2024-07-29 00:27:31 +00:00
parent 157c952bc5
commit 3121898379

View File

@ -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 ***"