1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/flohmarkt_ynh.git synced 2024-09-03 18:36:30 +02:00
This commit is contained in:
Chris Vogel 2024-04-22 11:21:07 +02:00
parent c4d19c550e
commit bfc5581728
3 changed files with 6 additions and 1 deletions

View file

@ -10,7 +10,7 @@ ynh_backup --src_path="/etc/fail2ban/jail.d/$app.conf"
ynh_backup --src_path="/etc/fail2ban/filter.d/$app.conf" ynh_backup --src_path="/etc/fail2ban/filter.d/$app.conf"
ynh_backup --src_path="/etc/logrotate.d/$app" ynh_backup --src_path="/etc/logrotate.d/$app"
ynh_backup --src_path="/opt/couchdb/etc/local.d/05-flohmarkt.ini" ynh_backup --src_path="/opt/couchdb/etc/local.d/05-flohmarkt.ini"
# ynh_backup --src_path="/etc/yunohost/apps/$app" ynh_backup --src_path="/etc/systemd/system/$app.service"
# for the following backups we'll want to stop flohmarkt and couchdb # for the following backups we'll want to stop flohmarkt and couchdb
# to guarentee a consistant state # to guarentee a consistant state

View file

@ -56,6 +56,10 @@ ynh_remove_fail2ban_config
ynh_script_progression --message="Removing data directory..." --weight=2 ynh_script_progression --message="Removing data directory..." --weight=2
ynh_secure_remove --file=$data_dir ynh_secure_remove --file=$data_dir
# remove systemd service
ynh_script_progression --message="Removing data directory..." --weight=2
ynh_remove_systemd_config
#================================================= #=================================================
# END OF SCRIPT # END OF SCRIPT
#================================================= #=================================================

View file

@ -65,6 +65,7 @@ ynh_restore_file --origin_path="/etc/logrotate.d/$app"
# INTEGRATE SERVICE IN YUNOHOST # INTEGRATE SERVICE IN YUNOHOST
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1 ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
ynh_restore_file --origin_path="/etc/systemd/system/$app.service"
yunohost service add $app --description="A decentral federated small advertisement platform" --log="/var/log/$app/$app.log" yunohost service add $app --description="A decentral federated small advertisement platform" --log="/var/log/$app/$app.log"
ynh_systemd_action --action=start --line_match="INFO: Application startup complete." ynh_systemd_action --action=start --line_match="INFO: Application startup complete."