diff --git a/conf/systemd.service b/conf/systemd.service index e883a3d..6d8a50a 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -7,7 +7,7 @@ Type=simple User=__APP__ Group=__APP__ WorkingDirectory=__FINALPATH__/ -ExecStart=__FINALPATH__/loki --config.file __FINALPATH__/local-config.yaml +ExecStart=__FINALPATH__/loki-linux-__ARCH__ --config.file __FINALPATH__/local-config.yaml StandardOutput=append:/var/log/__APP__/__APP__.log StandardError=inherit diff --git a/manifest.json b/manifest.json index c8f742b..0a4ed15 100644 --- a/manifest.json +++ b/manifest.json @@ -22,7 +22,7 @@ "requirements": { "yunohost": ">= 11.0.0" }, - "multi_instance": false, + "multi_instance": true, "services": [], "arguments": { "install": [] diff --git a/scripts/install b/scripts/install index 259d033..83f2bbc 100755 --- a/scripts/install +++ b/scripts/install @@ -21,6 +21,7 @@ ynh_abort_if_errors #================================================= app=$YNH_APP_INSTANCE_NAME +arch=$YNH_ARCH #================================================= # CHECK IF THE APP CAN BE INSTALLED WITH THESE ARGS diff --git a/scripts/restore b/scripts/restore index 9751a7b..0b17d45 100755 --- a/scripts/restore +++ b/scripts/restore @@ -27,6 +27,7 @@ ynh_abort_if_errors ynh_script_progression --message="Loading installation settings..." --weight=1 app=$YNH_APP_INSTANCE_NAME +arch=$YNH_ARCH final_path=$(ynh_app_setting_get --app=$app --key=final_path) diff --git a/scripts/upgrade b/scripts/upgrade index d7d3b13..70d96f5 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -15,6 +15,7 @@ source /usr/share/yunohost/helpers ynh_script_progression --message="Loading installation settings..." --weight=1 app=$YNH_APP_INSTANCE_NAME +arch=$YNH_ARCH final_path=$(ynh_app_setting_get --app=$app --key=final_path) http_port=$(ynh_app_setting_get --app=$app --key=http_port)