Removed unnecessary "sudo"

This commit is contained in:
Bram Prieshof
2020-11-25 14:35:16 +01:00
parent bfdc48670c
commit affea1227b

View File

@@ -74,7 +74,7 @@ apache () {
nginx () {
if [ "$osrel" = "ubu1804" ] || [ "$osrel" = "ubu2004" ] || [ "$osrel" = "deb10" ] ; then
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 -
curl -fsSL https://nginx.org/keys/nginx_signing.key | apt-key add -
elif [ "$osrel" = "cent8" ]; then
rpm --import https://nginx.org/keys/nginx_signing.key