routeros: Fix permissions of downloaded firmware
This commit is contained in:
parent
e5646b673e
commit
d680e43b70
1 changed files with 2 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue