forked from axiom-team/astrXbian
## ONLY FOR xbian (not using nginx proxy anymore)
This commit is contained in:
parent
c6c796485c
commit
eab63a51b2
22
install.sh
22
install.sh
|
@ -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 !!"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue