|
@@ -70,11 +70,6 @@ ynh_exec_warn_less ls -lR /var/lib/couchdb /opt/couchdb/etc $install_dir /var/lo
|
|
|
/var/log/$app/$app.log $data_dir /etc/nginx/conf.d/$domain.d/$app.conf
|
|
/var/log/$app/$app.log $data_dir /etc/nginx/conf.d/$domain.d/$app.conf
|
|
|
ynh_exec_warn_less cat $install_dir/$app/flohmarkt.conf /opt/couchdb/etc/local.d/05-flohmarkt.ini
|
|
ynh_exec_warn_less cat $install_dir/$app/flohmarkt.conf /opt/couchdb/etc/local.d/05-flohmarkt.ini
|
|
|
ynh_exec_warn_less cat /var/log/couchdb/couchdb.log /var/log/$app/$app.log
|
|
ynh_exec_warn_less cat /var/log/couchdb/couchdb.log /var/log/$app/$app.log
|
|
|
-ynh_exec_warn_less netstat -pnlt
|
|
|
|
|
-ynh_exec_warn_less systemctl status flohmarkt
|
|
|
|
|
-ynh_exec_warn_less systemctl status couchdb
|
|
|
|
|
-ynh_exec_warn_less ps axuf
|
|
|
|
|
-# debug end
|
|
|
|
|
|
|
|
|
|
# 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
|
|
@@ -82,8 +77,16 @@ 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."
|
|
|
|
|
|
|
|
|
|
+# add some debugging to find #21
|
|
|
|
|
+ynh_exec_warn_less systemctl status flohmarkt
|
|
|
|
|
+ynh_exec_warn_less systemctl status couchdb
|
|
|
|
|
+
|
|
|
# RELOAD NGINX
|
|
# RELOAD NGINX
|
|
|
ynh_script_progression --message="Reloading NGINX web server..." --weight=1
|
|
ynh_script_progression --message="Reloading NGINX web server..." --weight=1
|
|
|
ynh_systemd_action --service_name=nginx --action=reload
|
|
ynh_systemd_action --service_name=nginx --action=reload
|
|
|
|
|
|
|
|
|
|
+# add some debugging to find #21
|
|
|
|
|
+ynh_exec_warn_less ps axuf
|
|
|
|
|
+ynh_exec_warn_less netstat -pnlt
|
|
|
|
|
+
|
|
|
ynh_script_progression --message="Restoration completed for $app" --last
|
|
ynh_script_progression --message="Restoration completed for $app" --last
|