From c1e0801e94636d8b420491d8058648dfd19e4841 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Mon, 30 Aug 2021 15:16:17 +0200 Subject: [PATCH] fix --- conf/systemd.service | 15 +++++---------- scripts/install | 16 ++++------------ 2 files changed, 9 insertions(+), 22 deletions(-) diff --git a/conf/systemd.service b/conf/systemd.service index 11d34f3..70c3c85 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -6,20 +6,15 @@ After=network.target Type=simple User=__APP__ Group=__APP__ -#WorkingDirectory=__FINALPATH__/ +WorkingDirectory=__FINALPATH__/ Environment="PATH=__ENV_PATH__" Environment="THELOUNGE_HOME=/home/yunohost.app/__APP__/" Environment="NODE_ENV=production" ExecStart=/usr/bin/yarn start -ProtectSystem=yes -ProtectHome=yes -NoNewPrivileges=yes -PrivateTmp=yes - -#Restart=on-failure -#RestartSec=5 -#StartLimitInterval=60s -#StartLimitBurst=3 +Restart=on-failure +RestartSec=5 +StartLimitInterval=60s +StartLimitBurst=3 [Install] WantedBy=multi-user.target diff --git a/scripts/install b/scripts/install index 22a5193..90f278b 100644 --- a/scripts/install +++ b/scripts/install @@ -129,19 +129,11 @@ ynh_add_config --template="../conf/config.js" --destination="$datadir/config.js" #================================================= ynh_script_progression --message="Installing The Lounge..." -# pushd $final_path -# ynh_use_nodejs -# ynh_exec_warn_less NODE_ENV=production yarn install -# yarn add webpack webpack-dev-server --dev -# ynh_exec_warn_less NODE_ENV=production yarn build -# popd - pushd $final_path - ynh_use_nodejs - ynh_exec_warn_less ynh_exec_as $app yarn install - yarn add webpack webpack-dev-server --dev - ynh_exec_warn_less ynh_exec_as $app NODE_ENV=production yarn build - ynh_exec_warn_less ynh_exec_as $app yarn link + ynh_use_nodejs + ynh_exec_warn_less NODE_ENV=production yarn install + yarn add webpack webpack-dev-server --dev + ynh_exec_warn_less NODE_ENV=production yarn build popd #=================================================