[misc] update gpt file permissions in install.sh (#3663)

* Fix install.sh for some installations

Fix install.sh for some installations by explicitly setting the file permissions

* Add sudo
This commit is contained in:
Lamera 2025-04-16 14:23:25 +02:00 committed by GitHub
parent 0c93bd3d06
commit a37368fff4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -109,6 +109,9 @@ add_apt_repo() {
curl -sSL https://pkgs.netbird.io/debian/public.key \
| ${SUDO} gpg --dearmor -o /usr/share/keyrings/netbird-archive-keyring.gpg
# Explicitly set the file permission
${SUDO} chmod 0644 /usr/share/keyrings/netbird-archive-keyring.gpg
echo 'deb [signed-by=/usr/share/keyrings/netbird-archive-keyring.gpg] https://pkgs.netbird.io/debian stable main' \
| ${SUDO} tee /etc/apt/sources.list.d/netbird.list