diff --git a/conf/systemd.service b/conf/systemd.service index bcd71b9..d093bf4 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -7,7 +7,7 @@ Type=simple User=__APP__ Group=__APP__ WorkingDirectory=__INSTALL_DIR__/ -ExecStart=__INSTALL_DIR__/run_fider +ExecStart=__INSTALL_DIR__/fider StandardOutput=append:/var/log/__APP__/__APP__.log StandardError=inherit diff --git a/scripts/_common.sh b/scripts/_common.sh index 821977b..8364e4c 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -6,7 +6,7 @@ nodejs_version=18 -go_version=1.18 +go_version=1.20 #================================================= # PERSONAL HELPERS diff --git a/scripts/install b/scripts/install index 7fcc9fd..ac6d657 100755 --- a/scripts/install +++ b/scripts/install @@ -63,9 +63,10 @@ ynh_script_progression --message="Adding the configuration file..." --weight=1 secret=$(ynh_string_random --length 64) ynh_app_setting_set --app=$app --key=secret --value=$secret -ynh_add_config --template="run_fider" --destination="$install_dir/run_fider" -chown $app:www-data "$install_dir/run_fider" -chmod 744 "$install_dir/run_fider" +ynh_add_config --template=.env --destination="$install_dir/.env" + +chown $app:www-data "$install_dir/.env" +chmod 744 "$install_dir/.env" #================================================= # START SYSTEMD SERVICE diff --git a/scripts/upgrade b/scripts/upgrade index 33a3799..9a849e9 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -66,10 +66,10 @@ yunohost service add $app --description="Fider Feedback platform" --log="/var/lo #================================================= ynh_script_progression --message="Updating a configuration file..." --weight=1 -ynh_add_config --template="run_fider" --destination="$install_dir/run_fider" +ynh_add_config --template=".env" --destination="$install_dir/.env" -chown $app:www-data "$install_dir/run_fider" -chmod 744 "$install_dir/run_fider" +chown $app:www-data "$install_dir/.env" +chmod 744 "$install_dir/.env" #================================================= # START SYSTEMD SERVICE