1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/thelounge_ynh.git synced 2024-09-03 20:35:54 +02:00

Merge branch 'pr/24' into example_ynh

This commit is contained in:
yalh76 2020-05-30 19:23:03 +02:00
commit 8d8abe7adc
2 changed files with 15 additions and 10 deletions

View file

@ -119,7 +119,8 @@ ynh_store_file_checksum "$config_path/config.js"
ynh_script_progression --message="Installing The Lounge..."
pushd $final_path
yarn install
ynh_use_nodejs
yarn install
ynh_exec_warn_less NODE_ENV=production yarn build
popd

View file

@ -138,7 +138,9 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]
then
ynh_script_progression --message="Upgrading the lounge..."
pushd $final_path
yarn install && ynh_exec_warn_less NODE_ENV=production yarn build
ynh_use_nodejs
yarn install
ynh_exec_warn_less NODE_ENV=production yarn build
popd
fi
@ -178,20 +180,22 @@ chown -R $app: $final_path
chown -R $app: $config_path
#=================================================
# SETUP SSOWAT
# GENERIC FINALIZATION
#=================================================
ynh_script_progression --message="Upgrading SSOwat configuration..."
# Make app public if necessary or protect it
[ $is_public -eq 0 ] || ynh_permission_update --permission "main" --add "visitors"
#=================================================
# INTEGRATE SERVICE IN YUNOHOST
# SECURE FILES AND DIRECTORIES
#=================================================
ynh_script_progression --message="Integrating service in YunoHost..."
yunohost service add $app --description "Self-hosted web IRC client" --log_type "systemd"
#=================================================
# SETUP SSOWAT
#=================================================
ynh_script_progression --message="Upgrading SSOwat configuration..."
# Make app public if necessary
[ $is_public -eq 0 ] || ynh_permission_update --permission "main" --add "visitors"
#=================================================
# START SYSTEMD SERVICE
#=================================================