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