1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/couchpotato_ynh.git synced 2024-09-03 18:16:22 +02:00
This commit is contained in:
Snipees 2015-09-05 17:08:35 +02:00
parent adafc483e3
commit af6b58dcdb
3 changed files with 5 additions and 5 deletions

View file

@ -106,8 +106,8 @@ if [[ $app_method == "LOCAL"* ]]; then
# Start daemon at boot
sudo update-rc.d $app_id defaults
# Reload daemon
sudo service $app_id restart
# Start service
sudo service $app_id start
# Set proxy host variable
app_host="http://${app_local_host}:${app_port}${app_path%/}"

View file

@ -1,8 +1,8 @@
#!/bin/bash
# Common variable declaration
app_id=htpc-manager
app_user=htpc-manager
app_id=couchpotato
app_user=couchpotato
app_install_dir="/opt/yunohost/${app_id}"
app_data_dir="/home/yunohost.app/${app_id}"

View file

@ -35,7 +35,7 @@ if [[ $app_method == "LOCAL"* ]]; then
# Upgrade dependencies
# Redirect logs directory
if [[ $app_logs_dir != $app_data_dir ]]; then
if [[ $app_logs_dir != "$app_data_dir"* ]]; then
sudo sed -i "s@self.log_dir =.*@self.log_dir = '$app_logs_dir'@g" $app_install_dir/CouchPotato.py
fi