X-Git-Url: https://git.armaanb.net/?p=asd-repo.git;a=blobdiff_plain;f=core%2Flibressl%2Ffiles%2Fupdate-certdata.sh;h=2901c7b41ff3a3ded41402e3bb5cbbec1906b562;hp=6db69c7eacd4995c95c85a39bd9ac61b6fbc1572;hb=a336334d18c99378652a12bc338f7efa945cf405;hpb=2f55090de3835e5787048202e6a23bf641782422 diff --git a/core/libressl/files/update-certdata.sh b/core/libressl/files/update-certdata.sh index 6db69c7..2901c7b 100755 --- a/core/libressl/files/update-certdata.sh +++ b/core/libressl/files/update-certdata.sh @@ -1,7 +1,11 @@ #!/bin/sh -e -cd /etc/ssl && { - curl -LO https://curl.haxx.se/ca/cacert.pem - mv -f cacert.pem cert.pem - printf '%s\n' "${0##*/}: updated cert.pem" -} +if [ -w /etc/ssl/cacert.pem ]; then + cd /etc/ssl && { + curl -LO https://curl.haxx.se/ca/cacert.pem + mv -f cacert.pem cert.pem + printf '%s\n' "${0##*/}: updated cert.pem" + } +else + printf "Skipping updating certdata as /etc/ssl/cacert.pem is not writable\n" +fi