quoting vars

This commit is contained in:
OniriCorpe
2024-01-17 01:43:15 +01:00
parent b11796f663
commit 9549a8d542
5 changed files with 26 additions and 26 deletions

View File

@ -16,7 +16,7 @@ source /usr/share/yunohost/helpers
#=================================================
ynh_script_progression --message="Stopping a systemd service..." --weight=1
ynh_systemd_action --service_name=$app --action="stop"
ynh_systemd_action --service_name="$app" --action="stop"
#=================================================
# MODIFY URL IN NGINX CONF
@ -36,7 +36,7 @@ domain=$new_domain
ynh_add_config --template="../conf/config.js" --destination="$install_dir/server/config.js"
chmod 400 "$install_dir/server/config.js"
chown $app:$app "$install_dir/server/config.js"
chown "$app:$app" "$install_dir/server/config.js"
#=================================================
# GENERIC FINALISATION
@ -46,7 +46,7 @@ chown $app:$app "$install_dir/server/config.js"
ynh_script_progression --message="Starting a systemd service..." --weight=1
# Start a systemd service
ynh_systemd_action --service_name=$app --action="start" --log_path="systemd"
ynh_systemd_action --service_name="$app" --action="start" --log_path="systemd"
#=================================================
# END OF SCRIPT