More flexible and beyond that

wget http://nginx.org/keys/nginx_signing.key && apt-key add nginx_signing.key
apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
This commit is contained in:
rieger::CLOUD
2018-09-21 13:34:05 +02:00
committed by GitHub
parent 14982d2d30
commit 2ad79d61e5

View File

@@ -59,12 +59,11 @@ deb http://nginx.org/packages/mainline/ubuntu/ bionic nginx
deb-src http://nginx.org/packages/mainline/ubuntu/ bionic nginx deb-src http://nginx.org/packages/mainline/ubuntu/ bionic nginx
deb [arch=amd64] http://ftp.hosteurope.de/mirror/mariadb.org/repo/10.3/ubuntu bionic main deb [arch=amd64] http://ftp.hosteurope.de/mirror/mariadb.org/repo/10.3/ubuntu bionic main
EOF EOF
wget http://nginx.org/keys/nginx_signing.key && apt-key add nginx_signing.key
apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
update_and_clean update_and_clean
apt install software-properties-common zip unzip screen curl git wget ffmpeg libfile-fcntllock-perl -y apt install software-properties-common zip unzip screen curl git wget ffmpeg libfile-fcntllock-perl -y
apt remove nginx nginx-common nginx-full -y --allow-change-held-packages apt remove nginx nginx-common nginx-full -y --allow-change-held-packages
if [ ! -f /usr/local/src/nginx_signing.key ]; then
wget http://nginx.org/keys/nginx_signing.key && apt-key add nginx_signing.key
fi
update_and_clean update_and_clean
###instal NGINX ###instal NGINX
apt install nginx -y apt install nginx -y
@@ -205,8 +204,6 @@ mount -a
service php7.2-fpm restart service php7.2-fpm restart
service nginx restart service nginx restart
###install MariaDB ###install MariaDB
apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
mariadbinfo
apt update && apt install mariadb-server -y apt update && apt install mariadb-server -y
/usr/sbin/service mysql stop /usr/sbin/service mysql stop
###configure MariaDB ###configure MariaDB