Merge pull request #1029 from ValdikSS/master

Fix docker keyring permissions due to custom umask
This commit is contained in:
Vinicius Fortuna 2022-01-06 13:29:12 -05:00 committed by GitHub
commit 3fb4bd121b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -158,7 +158,13 @@ function fetch() {
}
function install_docker() {
(fetch https://get.docker.com/ | sh) >&2
(
# Change umask so that /usr/share/keyrings/docker-archive-keyring.gpg has the right permissions.
# See https://github.com/Jigsaw-Code/outline-server/issues/951.
# We do this in a subprocess so the umask for the calling process is unaffected.
umask 0022
fetch https://get.docker.com/ | sh
) >&2
}
function start_docker() {