1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/actual_ynh.git synced 2024-09-03 20:36:16 +02:00
This commit is contained in:
Éric Gaspar 2023-06-05 13:18:14 +02:00
parent 3ceec141ca
commit ec71cd3667
2 changed files with 5 additions and 5 deletions

View file

@ -48,10 +48,10 @@ yunohost service add $app --description="Local-first personal finance tool" --lo
#=================================================
ynh_script_progression --message="Adding a configuration file..." --weight=1
ynh_add_config --template="../conf/.env" --destination="$install_dir/.env"
ynh_add_config --template="../conf/config.json" --destination="$install_dir/config.json"
chmod 400 "$install_dir/.env"
chown $app:$app "$install_dir/.env"
chmod 400 "$install_dir/config.json"
chown $app:$app "$install_dir/config.json"
#=================================================
# INSTALL THE LOUNGE

View file

@ -16,7 +16,7 @@ upgrade_type=$(ynh_check_app_version_changed)
#=================================================
ynh_script_progression --message="Stopping a systemd service..." --weight=1
ynh_systemd_action --service_name=$app --action="stop" --log_path="/var/log/$app/$app.log"
ynh_systemd_action --service_name=$app --action="stop" --log_path="systemd"
#=================================================
# "REBUILD" THE APP (DEPLOY NEW SOURCES, RERUN NPM BUILD...)
@ -29,7 +29,7 @@ then
ynh_script_progression --message="Upgrading source files..." --weight=1
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir" --keep=".env"
ynh_setup_source --dest_dir="$install_dir" --keep="config.json"
fi
chown -R $app:www-data "$install_dir"