ONLY nginx is supported.

This commit is contained in:
qo-op 2020-05-14 14:10:27 +02:00
parent 3e1316843b
commit 2b9749fd25
1 changed files with 12 additions and 0 deletions

View File

@ -11,6 +11,9 @@ ME="${0##*/}"
[[ $USER == "root" ]] && echo "DO NOT RUN AS root!! Use regular USER with sudo AUTHORISATION" && exit 1
is_apache_running=$(ps auxf --sort=+utime | grep -w apache | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d " " -f 1);
[[ $is_apache_running ]] && echo "SORRY ONLY nginx is supported. EXIT" && exit 1
MACHINE_TYPE=`uname -m`
[ ${MACHINE_TYPE:0:3} == 'arm' ] && isARM="YES"
@ -49,6 +52,15 @@ sudo service mpd restart || err=1
## TODO add to system start (/etc/rc.local?)
### INSTALL NGINX
echo '
_
____ ____ _(_)___ _ __
/ __ \/ __ `/ / __ \| |/_/
/ / / / /_/ / / / / /> <
/_/ /_/\__, /_/_/ /_/_/|_|
/____/
'
sudo apt-get install fail2ban nginx ssl-cert php-curl php-sqlite3 php-gd php-json php-xml php-mbstring php-fpm sqlite -y || err=1
# CONFIG NGINX - LOVE LAND FRONTAL WEB PAGE