From e3f5f98d1f8e80c57aabbbcb4ae55fb785da5d95 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Fri, 2 Jul 2021 16:32:19 +0200 Subject: [PATCH] fix --- conf/systemd.service | 2 +- scripts/install | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/conf/systemd.service b/conf/systemd.service index 0aed22e..ef9e85d 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -10,7 +10,7 @@ WorkingDirectory=__FINALPATH__ Environment="PATH=__ENV_PATH__" Environment="THELOUNGE_HOME=/home/yunohost.app/__APP__/" Environment="NODE_ENV=production" -ExecStart=/usr/bin/yarn start +ExecStart=__YNH_NODE__ thelounge start Restart=on-failure RestartSec=5 StartLimitInterval=60s diff --git a/scripts/install b/scripts/install index 68273f3..509b811 100644 --- a/scripts/install +++ b/scripts/install @@ -84,8 +84,8 @@ ynh_script_progression --message="Setting up source files..." ynh_app_setting_set --app=$app --key=final_path --value=$final_path # Download, check integrity, uncompress and patch the source from app.src -ynh_setup_source --dest_dir=$final_path - +#ynh_setup_source --dest_dir=$final_path +mkdir $final_path chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path" @@ -125,8 +125,8 @@ ynh_script_progression --message="Installing The Lounge..." pushd $final_path ynh_use_nodejs - yarn install - ynh_exec_warn_less NODE_ENV=production yarn build + npm install --global --unsafe-perm thelounge + #ynh_exec_warn_less NODE_ENV=production yarn build popd #=================================================