nginx - fix apt preference config without newlines

This commit is contained in:
2022-12-19 22:31:01 +01:00
parent e032c925db
commit 351a712d0e

View File

@@ -49,7 +49,7 @@ step_10() {
info "Setup php repository including gpg key"
exep curl -fsSL ${sq_keyUrl:?}/nginx_signing.key "|" gpg --dearmor -o "/etc/apt/trusted.gpg.d/nginx-keyring.gpg"
addConf -c "deb ${lArch:-} ${sq_repoUrl:?} $(lsb_release -sc) nginx" "/etc/apt/sources.list.d/nginx.list"
addConf -s "Package: *\nPin: origin nginx.org\nPin: release o=nginx\nPin-Priority: 900\n" \
addConf -es "Package: *\nPin: origin nginx.org\nPin: release o=nginx\nPin-Priority: 900" \
/etc/apt/preferences.d/99nginx
exe apt update
}