## ONLY FOR xbian (not using nginx proxy anymore)

This commit is contained in:
qo-op 2021-01-29 00:51:08 +01:00
parent c6c796485c
commit eab63a51b2
1 changed files with 6 additions and 16 deletions

View File

@ -1,10 +1,13 @@
#!/bin/bash
{
# Check requirements
echo "AstrXbian installer"
echo "AstrXbian installer, for https://xbian.org"
## ONLY FOR xbian
[[ "$USER" != "xbian" ]] && exit 1
sudo apt-get update
sudo apt-get install git fail2ban inotify-tools curl net-tools libsodium23 libsodium-dev python3-dev python3-pip python3-setuptools python3-wheel mpack libssl-dev libffi-dev build-essential qrencode jq bc gawk -y
sudo apt-get install nginx ssl-cert php-curl php-sqlite3 php-gd php-json php-xml php-mbstring php-fpm sqlite dnsutils -y
sudo apt-get install git fail2ban inotify-tools curl net-tools libsodium23 libsodium-dev python3-dev python3-pip python3-setuptools python3-wheel mpack libssl-dev libffi-dev -y
sudo apt-get install build-essential qrencode jq bc gawk ffmpeg sqlite dnsutils -y
pip3 install cryptography Ed25519 base58 google protobuf
# git clone astrXbian
@ -46,19 +49,6 @@ cd /etc/rc6.d && sudo ln -s ../init.d/ipfs K01ipfs
sudo ipfs restart
sudo fail2ban restart
### Install astrxbian & NGINX config
sudo rm -Rf /var/www/astrxbian
sudo mkdir -p /var/www/astrxbian
sudo cp -Rf /home/$USER/.zen/astrXbian/www/xbian/* /var/www/astrxbian
sudo chown -R $USER:$USER /var/www/astrxbian
sudo cp -f /home/$USER/.zen/astrXbian/.install/templates/nginx/astrxbian.conf /etc/nginx/conf.d/
# TODO #######################################################################
# echo "Install JUKEBOOX"
# ~/.zen/astrXbian/.install/mpd_rompr.sh
sudo nginx restart
echo "Installation complete !!"
}