diff --git a/conf/systemd.service b/conf/systemd.service index a0cc819..90a6f03 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -7,6 +7,7 @@ After=network.target Type=simple User=__APP__ Group=__APP__ +Environment="PATH=__ENV_PATH__" WorkingDirectory=__INSTALL_DIR__/app Environment=PORT=__PORT__ ExecStart=__YNH_NPM__ run start diff --git a/scripts/install b/scripts/install index c17cae6..c11b056 100755 --- a/scripts/install +++ b/scripts/install @@ -44,6 +44,7 @@ ynh_script_progression --message="Adding system configurations related to $app.. ynh_add_nginx_config +env_path="$PATH" ynh_add_systemd_config ynh_add_config --template="../conf/cron" --destination="/etc/cron.d/$app" diff --git a/scripts/upgrade b/scripts/upgrade index 0d98f37..401a2bd 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -41,6 +41,7 @@ ynh_script_progression --message="Upgrading system configurations related to $ap ynh_add_nginx_config +env_path="$PATH" ynh_add_systemd_config yunohost service add $app --description="WebUI for BorgBackup" --log="/var/log/$app/$app.log" diff --git a/tests.toml b/tests.toml index c298fc9..0a1acf6 100644 --- a/tests.toml +++ b/tests.toml @@ -4,4 +4,8 @@ test_format = 1.0 [default] - \ No newline at end of file + # ------------ + # Tests to run + # ------------ + + exclude = ["install.subdir"] \ No newline at end of file