From 35ddbc027d7a069608d5742805d483b5d00f03a4 Mon Sep 17 00:00:00 2001 From: anmol26s Date: Mon, 1 Mar 2021 14:01:26 +0530 Subject: [PATCH 1/3] Update port for systemd --- scripts/install | 3 ++- scripts/upgrade | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 7735ae3..8daaca0 100755 --- a/scripts/install +++ b/scripts/install @@ -107,7 +107,7 @@ ynh_system_user_create --username=$app #================================================= ynh_script_progression --message="Configuring a systemd service..." --weight=1 -ynh_add_systemd_config +ynh_add_systemd_config --service="$app" --template="systemd.service" --others_var="path domain" #================================================= # INTEGRATE SERVICE IN YUNOHOST @@ -141,6 +141,7 @@ python3 $final_path/epicyon.py --addaccount $email --password $password # Set permissions to app files chown -R $app: $final_path +chown -R $app: $path_url #================================================= # SETUP SSOWAT diff --git a/scripts/upgrade b/scripts/upgrade index e1d6cd4..66daaaf 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -118,7 +118,7 @@ ynh_system_user_create --username=$app ynh_script_progression --message="Upgrading systemd configuration..." --weight=1 # Create a dedicated systemd config -ynh_add_systemd_config +ynh_add_systemd_config --service="$app" --template="systemd.service" --others_var="path domain" #================================================= @@ -129,6 +129,7 @@ ynh_add_systemd_config # Set permissions on app files chown -R $app: $final_path +chown -R $app: $path_url #================================================= # INTEGRATE SERVICE IN YUNOHOST From 4f8875e329a927e0f30c7987e617c236e343797d Mon Sep 17 00:00:00 2001 From: anmol26s Date: Tue, 2 Mar 2021 01:32:22 +0530 Subject: [PATCH 2/3] Fix systemd service for port and domain --- scripts/install | 2 +- scripts/upgrade | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 8daaca0..8fcea43 100755 --- a/scripts/install +++ b/scripts/install @@ -107,7 +107,7 @@ ynh_system_user_create --username=$app #================================================= ynh_script_progression --message="Configuring a systemd service..." --weight=1 -ynh_add_systemd_config --service="$app" --template="systemd.service" --others_var="path domain" +ynh_add_systemd_config --service="$app" --template="systemd.service" --others_var="port domain" #================================================= # INTEGRATE SERVICE IN YUNOHOST diff --git a/scripts/upgrade b/scripts/upgrade index 66daaaf..1a369f1 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -118,7 +118,7 @@ ynh_system_user_create --username=$app ynh_script_progression --message="Upgrading systemd configuration..." --weight=1 # Create a dedicated systemd config -ynh_add_systemd_config --service="$app" --template="systemd.service" --others_var="path domain" +ynh_add_systemd_config --service="$app" --template="systemd.service" --others_var="port domain" #================================================= From 2564a7fa873d6afec3bb0a2e0e6db1f2febd5b74 Mon Sep 17 00:00:00 2001 From: anmol26s Date: Tue, 2 Mar 2021 01:38:33 +0530 Subject: [PATCH 3/3] Wrong permission --- scripts/install | 2 +- scripts/upgrade | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 8fcea43..2cac67b 100755 --- a/scripts/install +++ b/scripts/install @@ -141,7 +141,7 @@ python3 $final_path/epicyon.py --addaccount $email --password $password # Set permissions to app files chown -R $app: $final_path -chown -R $app: $path_url +chown -R $app: $public_path #================================================= # SETUP SSOWAT diff --git a/scripts/upgrade b/scripts/upgrade index 1a369f1..c695515 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -129,7 +129,7 @@ ynh_add_systemd_config --service="$app" --template="systemd.service" --others_va # Set permissions on app files chown -R $app: $final_path -chown -R $app: $path_url +chown -R $app: $public_path #================================================= # INTEGRATE SERVICE IN YUNOHOST