Просмотр исходного кода

debugging added

find reason for warnings
Chris Vogel 1 год назад
Родитель
Сommit
b7292ff44e
2 измененных файлов с 9 добавлено и 2 удалено
  1. 5 1
      scripts/install
  2. 4 1
      scripts/remove

+ 5 - 1
scripts/install

@@ -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

+ 4 - 1
scripts/remove

@@ -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