Fixed nginx

added [arch=amd64] to nginx repo to prevent i386 unavailability errors
This commit is contained in:
Bram Prieshof
2020-09-24 13:13:14 +02:00
parent fe507c90e2
commit c5c9133b28

View File

@@ -68,7 +68,7 @@ fi
nginx () {
if [ "$osrel" = "ubu1804" ] || [ "$osrel" = "ubu2004" ] || [ "$osrel" = "deb10" ] ; then
echo "deb http://nginx.org/packages/"$dist" "$dist_name" nginx" > /etc/apt/sources.list.d/nginx.list
echo "deb [arch=amd64] http://nginx.org/packages/"$dist" "$dist_name" nginx" > /etc/apt/sources.list.d/nginx.list
curl -fsSL https://nginx.org/keys/nginx_signing.key | sudo apt-key add -
elif [ "$osrel" = "cent8" ]; then
rpm --import https://nginx.org/keys/nginx_signing.key