From 28032f3537ed9ed22bbb59d672fa4e8930b1e00d Mon Sep 17 00:00:00 2001 From: Limezy Date: Wed, 31 Aug 2022 11:00:52 +0700 Subject: [PATCH] Updates --- .DS_Store | Bin 0 -> 6148 bytes conf/.env | 2 +- conf/microservices.service | 48 +++++++++++++++++++++++++++ conf/{systemd.service => ml.service} | 7 ++-- conf/server.service | 48 +++++++++++++++++++++++++++ conf/web.service | 48 +++++++++++++++++++++++++++ scripts/_common.sh | 7 +++- scripts/install | 10 ++++-- 8 files changed, 163 insertions(+), 7 deletions(-) create mode 100644 .DS_Store create mode 100644 conf/microservices.service rename conf/{systemd.service => ml.service} (86%) create mode 100644 conf/server.service create mode 100644 conf/web.service diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..1bb1d1e2036c92c78c2a1220bf20738972486ec6 GIT binary patch literal 6148 zcmeH~K?=e^3`G;|qTr@Wm$UHz-e3?tK`$UEx{($HUC+_|$ppdbT10*z`IF3q(zoa| zBBGnyaV^q`NDDWWm4%5Z@+s;vtg>c&1 ynh_install_app_dependencies $pkg_dependencies +ynh_psql_execute_as_root ln -s /usr/lib/x86_64-linux-musl/libc.so /lib/libc.musl-x86_64.so.1 #================================================= # CREATE DEDICATED USER @@ -201,10 +202,13 @@ chown $app:$app "$final_path/.env" #================================================= # SETUP SYSTEMD #================================================= -ynh_script_progression --message="Configuring a systemd service..." +ynh_script_progression --message="Configuring all systemd services..." # Create a dedicated systemd config -ynh_add_systemd_config +ynh_add_systemd_config --service=$app-server --template=server.service +ynh_add_systemd_config --service=$app-microservices --template=microservices.service +ynh_add_systemd_config --service=$app-machine-learning --template=ml.service +ynh_add_systemd_config --service=$app-web --template=web.service #================================================= # GENERIC FINALIZATION @@ -229,7 +233,7 @@ yunohost service add $app --description="A short description of the app" --log=" ynh_script_progression --message="Starting a systemd service..." # Start a systemd service -ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" +ynh_systemd_action --service_name=$app-server --action="start" --log_path="/var/log/$app/$app-server.log" #================================================= # SETUP SSOWAT