routeros: Fix permissions of downloaded firmware

This commit is contained in:
Timo Makinen 2025-06-14 18:21:06 +00:00
parent e5646b673e
commit d680e43b70

View file

@ -2,7 +2,7 @@
set -eu
umask 022
umask 077
cd /srv/web/oob.foo.sh/routeros
@ -56,6 +56,7 @@ if [ "$(sha256sum "$tmpfile" | cut -d " " -f 1)" != "$checksum" ]; then
fi
mv "$tmpfile" "$packagename"
chmod 644 "$packagename"
echo
curl -sSf "https://cdn.mikrotik.com/routeros/$(echo "$packagename" | cut -d "-" -f 2)/CHANGELOG"