ONLY nginx is supported.
This commit is contained in:
parent
3e1316843b
commit
2b9749fd25
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue