1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/flohmarkt_ynh.git synced 2024-09-03 18:36:30 +02:00

debugging added

find reason for warnings
This commit is contained in:
Chris Vogel 2024-05-13 12:29:10 +02:00
parent f15fda5567
commit b7292ff44e
2 changed files with 9 additions and 2 deletions

View file

@ -1,5 +1,7 @@
#!/bin/bash
ps axf # debug
# IMPORT GENERIC HELPERS
source _common.sh
source /usr/share/yunohost/helpers
@ -93,11 +95,13 @@ ynh_add_nginx_config
# systemd.service
ynh_script_progression --message="Configuring a systemd service..." --weight=1
ps axf # debug
# Create a dedicated systemd config
ynh_add_systemd_config --service=$flohmarkt_filename
# integrate into yunohost
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
yunohost service add $flohmarkt_filename --description="A decentral federated small advertisement platform" --log="$flohmarkt_logfile"
ps axf # debug
# logfile contains possibly the secret setup URL
ynh_script_progression --message="Setting permissions on logfile..." --weight=2
@ -122,7 +126,7 @@ ln -s "$flohmarkt_data_dir" "$flohmarkt_sym_data_dir"
# start service
ynh_script_progression --message="Debug before starting flohmarkt..." --weight=1
ps axuf
ps axuf # debug
ls -l $flohmarkt_logfile /bin/bash /usr/bin/bash || true
ynh_script_progression --message="Starting flohmarkt..." --weight=10
flohmarkt_ynh_start_service

View file

@ -24,7 +24,7 @@ yunohost service stop $flohmarkt_filename
if ynh_exec_warn_less yunohost service status $flohmarkt_filename >/dev/null
then
ynh_script_progression --message="Removing $app service integration..." --weight=2
yunohost service remove $flohmarkt_filename
ynh_remove_systemd_config --service=$flohmarkt_filename
fi
# https://codeberg.org/flohmarkt/flohmarkt_ynh/issues/12
@ -67,3 +67,6 @@ ynh_secure_remove "$flohmarkt_sym_data_dir"
#=================================================
ynh_script_progression --message="Removal of $app completed" --last
# debug
ps -axf