1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/thelounge_ynh.git synced 2024-09-03 20:35:54 +02:00
This commit is contained in:
ericgaspar 2021-07-02 16:32:19 +02:00
parent af5202d123
commit e3f5f98d1f
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 5 additions and 5 deletions

View file

@ -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

View file

@ -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
#=================================================