diff --git a/scripts/install b/scripts/install index 9c48bea..dcc7542 100644 --- a/scripts/install +++ b/scripts/install @@ -96,8 +96,6 @@ chmod +x "$final_path/server/bin/prod.js" #================================================= ynh_script_progression --message="Configuring NGINX web server..." --weight=2 -ynh_replace_string --match_string="__ENV_PATH__" --replace_string="$PATH" --target_file="../conf/systemd.service" - # Create a dedicated NGINX config ynh_add_nginx_config @@ -109,7 +107,7 @@ ynh_script_progression --message="Adding a configuration file..." --weight=2 ynh_add_config --template="../conf/config.js" --destination="$final_path/server/config.js" chmod 400 "$final_path/server/config.js" -chown $app:$app "$final_path/server/config.js" +chown $app "$final_path/server/config.js" #================================================= # SPECIFIC SETUP @@ -144,7 +142,7 @@ yunohost service add $app --description="Simple, private file sharing" --log="/v ynh_script_progression --message="Starting a systemd service..." --weight=2 # Start a systemd service -ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" #--line_match="HTTP Server listening" +ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" #================================================= # SETUP SSOWAT diff --git a/scripts/restore b/scripts/restore index f72b8d3..058b9ab 100644 --- a/scripts/restore +++ b/scripts/restore @@ -102,7 +102,7 @@ yunohost service add $app --description="Simple, private file sharing" --log="/v #================================================= ynh_script_progression --message="Starting a systemd service..." --weight=1 -ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" #--line_match="HTTP Server listening" +ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" #================================================= # GENERIC FINALIZATION diff --git a/scripts/upgrade b/scripts/upgrade index dd8c7aa..6910e29 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -130,8 +130,6 @@ fi #================================================= ynh_script_progression --message="Configuring a systemd service..." --weight=2 -ynh_replace_string --match_string="__ENV_PATH__" --replace_string="$PATH" --target_file="../conf/systemd.service" - # Create a dedicated systemd config ynh_add_systemd_config @@ -147,7 +145,7 @@ yunohost service add $app --description="Simple, private file sharing" --log="/v #================================================= ynh_script_progression --message="Starting a systemd service..." --weight=1 -ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" #--line_match="HTTP Server listening" +ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" #================================================= # RELOAD NGINX