mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 06:03:28 +00:00
Merge pull request #2536 from Pedro-Cunha/webmin-setup-repo-repokey-perm
webmin-setup-repo.sh: Set mode of repo key to 644 for deb distros
This commit is contained in:
@@ -474,6 +474,8 @@ EOF
|
||||
gpg --dearmor < "$repo_key" \
|
||||
> "/usr/share/keyrings/$repoid_debian_like-$repo_key_suffix.gpg"
|
||||
post_status $?
|
||||
# Set correct permissions on the repo key in case the system uses a restrictive umask
|
||||
chmod 644 "/usr/share/keyrings/$repoid_debian_like-$repo_key_suffix.gpg"
|
||||
sources_list=$(grep -v "$repo_host" /etc/apt/sources.list)
|
||||
echo "$sources_list" > /etc/apt/sources.list
|
||||
# Configure packages priority if provided
|
||||
|
||||
Reference in New Issue
Block a user