mirror of
https://github.com/YunoHost-Apps/transmission_ynh.git
synced 2024-09-04 01:46:12 +02:00
[fix] Remove trailing spaces.
This commit is contained in:
parent
de7eebf8ea
commit
54ea508371
2 changed files with 8 additions and 8 deletions
|
@ -1,11 +1,11 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Retrieve arguments
|
# Retrieve arguments
|
||||||
domain=$1
|
domain=$1
|
||||||
path=$2
|
path=$2
|
||||||
|
|
||||||
sudo yunohost app checkurl $domain$path -a transmission
|
sudo yunohost app checkurl $domain$path -a transmission
|
||||||
if [[ ! $? -eq 0 ]]; then
|
if [[ ! $? -eq 0 ]]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -15,18 +15,18 @@ path=${path%/}
|
||||||
# Check port availability
|
# Check port availability
|
||||||
sudo yunohost app checkport 9091
|
sudo yunohost app checkport 9091
|
||||||
if [[ ! $? -eq 0 ]]; then
|
if [[ ! $? -eq 0 ]]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
sudo yunohost app checkport 51413
|
sudo yunohost app checkport 51413
|
||||||
if [[ ! $? -eq 0 ]]; then
|
if [[ ! $? -eq 0 ]]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Open port in firewall
|
# Open port in firewall
|
||||||
sudo yunohost firewall allow TCP 51413 > /dev/null 2>&1
|
sudo yunohost firewall allow TCP 51413 > /dev/null 2>&1
|
||||||
|
|
||||||
# Install official debian package
|
# Install official debian package
|
||||||
sudo apt-get install transmission-daemon -y -qq
|
sudo apt-get install transmission-daemon -y -qq
|
||||||
|
|
||||||
# Make directories and set rights
|
# Make directories and set rights
|
||||||
sudo mkdir -p /home/yunohost.transmission/{progress,completed}
|
sudo mkdir -p /home/yunohost.transmission/{progress,completed}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Retrieve arguments
|
# Retrieve arguments
|
||||||
domain=$(sudo yunohost app setting transmission domain)
|
domain=$(sudo yunohost app setting transmission domain)
|
||||||
|
@ -11,7 +11,7 @@ path=${path%/}
|
||||||
sudo yunohost firewall allow TCP 51413 > /dev/null 2>&1
|
sudo yunohost firewall allow TCP 51413 > /dev/null 2>&1
|
||||||
|
|
||||||
# Upgrade official debian package
|
# Upgrade official debian package
|
||||||
sudo apt-get install transmission-daemon -y -qq
|
sudo apt-get install transmission-daemon -y -qq
|
||||||
|
|
||||||
# Make directories and set rights
|
# Make directories and set rights
|
||||||
sudo mkdir -p /home/yunohost.transmission/{progress,completed}
|
sudo mkdir -p /home/yunohost.transmission/{progress,completed}
|
||||||
|
|
Loading…
Add table
Reference in a new issue