From 698c9f101bfe4e7c6790486a57281fcbcff50336 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 27 Mar 2022 14:34:15 +0200 Subject: [PATCH] Update install --- scripts/install | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index d819b2f..b2fe123 100644 --- a/scripts/install +++ b/scripts/install @@ -106,9 +106,12 @@ ynh_script_progression --message="Setting up wings binarie..." --weight=1 mkdir -p /etc/pterodactyl -ynh_setup_source --dest_dir="/usr/local/bin/wings" --source_id="wings" +ynh_setup_source --dest_dir="/etc/pterodactyl" --source_id="wings" -chmod u+x "/usr/local/bin/wings" +chmod 750 "/etc/pterodactyl" +chmod -R o-rwx "/etc/pterodactyl" +chown -R $app:www-data "/etc/pterodactyl" +chmod +x "/etc/pterodactyl/wings" #================================================= # NGINX CONFIGURATION @@ -167,7 +170,7 @@ chown -R $app:www-data "$final_path" ynh_script_progression --message="Configuring a systemd service..." --weight=1 mkdir -p /var/log/$app/ -touch /var/log/$app/$app-prod.log +touch /var/log/$app/$app.log # Create a dedicated systemd config ynh_add_systemd_config