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