From af6b58dcdb956c4607c7793dd146bb26b22f6ac8 Mon Sep 17 00:00:00 2001 From: Snipees Date: Sat, 5 Sep 2015 17:08:35 +0200 Subject: [PATCH] :package: fix --- scripts/install | 4 ++-- scripts/restore | 4 ++-- scripts/upgrade | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/install b/scripts/install index 1717aa0..79bd3c3 100644 --- a/scripts/install +++ b/scripts/install @@ -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%/}" diff --git a/scripts/restore b/scripts/restore index 23162fb..ace4123 100644 --- a/scripts/restore +++ b/scripts/restore @@ -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}" diff --git a/scripts/upgrade b/scripts/upgrade index 07e3570..74dc202 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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