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:
parent
f15fda5567
commit
b7292ff44e
2 changed files with 9 additions and 2 deletions
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
ps axf # debug
|
||||||
|
|
||||||
# IMPORT GENERIC HELPERS
|
# IMPORT GENERIC HELPERS
|
||||||
source _common.sh
|
source _common.sh
|
||||||
source /usr/share/yunohost/helpers
|
source /usr/share/yunohost/helpers
|
||||||
|
@ -93,11 +95,13 @@ ynh_add_nginx_config
|
||||||
|
|
||||||
# systemd.service
|
# systemd.service
|
||||||
ynh_script_progression --message="Configuring a systemd service..." --weight=1
|
ynh_script_progression --message="Configuring a systemd service..." --weight=1
|
||||||
|
ps axf # debug
|
||||||
# Create a dedicated systemd config
|
# Create a dedicated systemd config
|
||||||
ynh_add_systemd_config --service=$flohmarkt_filename
|
ynh_add_systemd_config --service=$flohmarkt_filename
|
||||||
# integrate into yunohost
|
# integrate into yunohost
|
||||||
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
|
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"
|
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
|
# logfile contains possibly the secret setup URL
|
||||||
ynh_script_progression --message="Setting permissions on logfile..." --weight=2
|
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
|
# start service
|
||||||
ynh_script_progression --message="Debug before starting flohmarkt..." --weight=1
|
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
|
ls -l $flohmarkt_logfile /bin/bash /usr/bin/bash || true
|
||||||
ynh_script_progression --message="Starting flohmarkt..." --weight=10
|
ynh_script_progression --message="Starting flohmarkt..." --weight=10
|
||||||
flohmarkt_ynh_start_service
|
flohmarkt_ynh_start_service
|
||||||
|
|
|
@ -24,7 +24,7 @@ yunohost service stop $flohmarkt_filename
|
||||||
if ynh_exec_warn_less yunohost service status $flohmarkt_filename >/dev/null
|
if ynh_exec_warn_less yunohost service status $flohmarkt_filename >/dev/null
|
||||||
then
|
then
|
||||||
ynh_script_progression --message="Removing $app service integration..." --weight=2
|
ynh_script_progression --message="Removing $app service integration..." --weight=2
|
||||||
yunohost service remove $flohmarkt_filename
|
ynh_remove_systemd_config --service=$flohmarkt_filename
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# https://codeberg.org/flohmarkt/flohmarkt_ynh/issues/12
|
# 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
|
ynh_script_progression --message="Removal of $app completed" --last
|
||||||
|
|
||||||
|
# debug
|
||||||
|
ps -axf
|
||||||
|
|
Loading…
Add table
Reference in a new issue