This commit is contained in:
Éric Gaspar
2024-09-08 16:27:08 +02:00
parent 5f46cd0123
commit 8b99ab94ba
7 changed files with 18 additions and 36 deletions

View File

@ -17,8 +17,6 @@ ynh_script_progression "Updating NGINX web server configuration..."
ynh_config_change_url_nginx
#=================================================
# SPECIFIC MODIFICATIONS
#=================================================
# ADD A CONFIGURATION
#=================================================
@ -27,15 +25,14 @@ ynh_script_progression "Adding $app's configuration..."
domain=$new_domain
ynh_config_add --template="config.js" --destination="$install_dir/server/config.js"
#REMOVEME? Assuming the file is setup using ynh_config_add, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chmod 400 "$install_dir/server/config.js"
#REMOVEME? Assuming the file is setup using ynh_config_add, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chown "$app:$app" "$install_dir/server/config.js"
#chmod 400 "$install_dir/server/config.js"
#chown "$app:$app" "$install_dir/server/config.js"
#=================================================
# START SYSTEMD SERVICE
#=================================================
ynh_script_progression "Starting $app's systemd service..."
# Start a systemd service
ynh_systemctl --service="$app" --action="start" --log_path="systemd"
#=================================================