From ffa132d016e6dac86ddd5444da920d005317662e Mon Sep 17 00:00:00 2001 From: Snipees Date: Mon, 24 Aug 2015 00:55:30 +0200 Subject: [PATCH] :package: init --- scripts/install | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 6a5245a..9b750ae 100644 --- a/scripts/install +++ b/scripts/install @@ -17,6 +17,7 @@ app_id=couchpotato app_user=couchpotato app_install_dir=/opt/yunohost/$app_id app_data_dir=/home/yunohost.app/$app_id +app_logs_dir=$app_data_dir/logs app_pid_file=/var/run/$app_id/$app_id.pid app_config_file=$app_data_dir/config.ini app_init_file=$app_install_dir/init/ubuntu @@ -101,7 +102,7 @@ if [[ $app_host == "127.0.0.1" ]]; then sudo chmod +x -R $app_data_dir # Add service to YunoHost's monitoring - sudo yunohost service add $app_id --log $app_data_dir/logs/ --status "ps aux | grep $app_id | grep -v grep" + sudo yunohost service add $app_id --log $app_logs_dir/ --status "ps aux | grep $app_id | grep -v grep" # Start daemon at boot sudo update-rc.d $app_id defaults