run update if server-profile failed

This commit is contained in:
olli 2024-09-29 22:06:11 +02:00
parent b349494564
commit eb65df54b6

View File

@ -87,7 +87,7 @@
# Server-Config in Git
cd /root
[ -d /root/server-$(hostname -s) ] && rm -r /root/server-$(hostname -s)
git clone ssh://git@gitea.ds9.dedyn.io:333/olli/server-$(hostname -s).git >/dev/null 2>&1 || exit 0
git clone ssh://git@gitea.ds9.dedyn.io:333/olli/server-$(hostname -s).git >/dev/null 2>&1
if [ -e /root/server-$(hostname -s)/$(hostname -s).sh ]
then
bash -x /root/server-$(hostname -s)/$(hostname -s).sh >/var/log/server-$(hostname -s)-update.log 2>&1