1
0
Fork 0
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:
opi 2014-11-11 16:39:27 +01:00
parent de7eebf8ea
commit 54ea508371
2 changed files with 8 additions and 8 deletions

View file

@ -1,11 +1,11 @@
#!/bin/bash
#!/bin/bash
# Retrieve arguments
domain=$1
path=$2
sudo yunohost app checkurl $domain$path -a transmission
if [[ ! $? -eq 0 ]]; then
if [[ ! $? -eq 0 ]]; then
exit 1
fi
@ -15,18 +15,18 @@ path=${path%/}
# Check port availability
sudo yunohost app checkport 9091
if [[ ! $? -eq 0 ]]; then
exit 1
exit 1
fi
sudo yunohost app checkport 51413
if [[ ! $? -eq 0 ]]; then
exit 1
if [[ ! $? -eq 0 ]]; then
exit 1
fi
# Open port in firewall
sudo yunohost firewall allow TCP 51413 > /dev/null 2>&1
# 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
sudo mkdir -p /home/yunohost.transmission/{progress,completed}

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash
# Retrieve arguments
domain=$(sudo yunohost app setting transmission domain)
@ -11,7 +11,7 @@ path=${path%/}
sudo yunohost firewall allow TCP 51413 > /dev/null 2>&1
# 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
sudo mkdir -p /home/yunohost.transmission/{progress,completed}