mirror of
https://github.com/YunoHost-Apps/send_ynh.git
synced 2024-11-25 07:21:36 +01:00
Fix
This commit is contained in:
parent
8f20c7eb92
commit
93f7939930
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user