mirror of
https://github.com/YunoHost-Apps/flood_ynh.git
synced 2024-09-03 18:36:20 +02:00
update install script
This commit is contained in:
parent
c6b8db3f1b
commit
d4f865d0a5
1 changed files with 0 additions and 11 deletions
|
@ -90,16 +90,6 @@ sudo chown -R flood:www-data /home/flood/.rtorrent.rc
|
||||||
sudo chown -R flood:www-data $data_dir
|
sudo chown -R flood:www-data $data_dir
|
||||||
sudo chmod 755 $data_dir
|
sudo chmod 755 $data_dir
|
||||||
|
|
||||||
|
|
||||||
# Check port availability
|
|
||||||
sudo yunohost app checkport 45069
|
|
||||||
if [[ ! $? -eq 0 ]]; then
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Open port in firewall
|
|
||||||
sudo yunohost firewall allow TCP 45069 > /dev/null 2>&1
|
|
||||||
|
|
||||||
# Install nodejs for flood
|
# Install nodejs for flood
|
||||||
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
|
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
|
||||||
sudo apt-get install -y nodejs
|
sudo apt-get install -y nodejs
|
||||||
|
@ -107,7 +97,6 @@ sudo apt-get install -y nodejs
|
||||||
# Clone flood
|
# Clone flood
|
||||||
cd /var/www
|
cd /var/www
|
||||||
git clone https://github.com/jfurrow/flood.git
|
git clone https://github.com/jfurrow/flood.git
|
||||||
cp
|
|
||||||
|
|
||||||
# Launch flood on boot
|
# Launch flood on boot
|
||||||
sudo cp ../sources/flood.service /etc/systemd/system/flood.service
|
sudo cp ../sources/flood.service /etc/systemd/system/flood.service
|
||||||
|
|
Loading…
Reference in a new issue