1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/fider_ynh.git synced 2024-09-03 18:36:11 +02:00
This commit is contained in:
Éric Gaspar 2024-06-19 14:37:26 +02:00
parent ceb9b06143
commit 421b20062c
4 changed files with 9 additions and 8 deletions

View file

@ -7,7 +7,7 @@ Type=simple
User=__APP__ User=__APP__
Group=__APP__ Group=__APP__
WorkingDirectory=__INSTALL_DIR__/ WorkingDirectory=__INSTALL_DIR__/
ExecStart=__INSTALL_DIR__/run_fider ExecStart=__INSTALL_DIR__/fider
StandardOutput=append:/var/log/__APP__/__APP__.log StandardOutput=append:/var/log/__APP__/__APP__.log
StandardError=inherit StandardError=inherit

View file

@ -6,7 +6,7 @@
nodejs_version=18 nodejs_version=18
go_version=1.18 go_version=1.20
#================================================= #=================================================
# PERSONAL HELPERS # PERSONAL HELPERS

View file

@ -63,9 +63,10 @@ ynh_script_progression --message="Adding the configuration file..." --weight=1
secret=$(ynh_string_random --length 64) secret=$(ynh_string_random --length 64)
ynh_app_setting_set --app=$app --key=secret --value=$secret ynh_app_setting_set --app=$app --key=secret --value=$secret
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 # START SYSTEMD SERVICE

View file

@ -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_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" chown $app:www-data "$install_dir/.env"
chmod 744 "$install_dir/run_fider" chmod 744 "$install_dir/.env"
#================================================= #=================================================
# START SYSTEMD SERVICE # START SYSTEMD SERVICE