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:
commit
8d8abe7adc
2 changed files with 15 additions and 10 deletions
|
@ -119,7 +119,8 @@ ynh_store_file_checksum "$config_path/config.js"
|
||||||
ynh_script_progression --message="Installing The Lounge..."
|
ynh_script_progression --message="Installing The Lounge..."
|
||||||
|
|
||||||
pushd $final_path
|
pushd $final_path
|
||||||
yarn install
|
ynh_use_nodejs
|
||||||
|
yarn install
|
||||||
ynh_exec_warn_less NODE_ENV=production yarn build
|
ynh_exec_warn_less NODE_ENV=production yarn build
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
|
|
@ -138,7 +138,9 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||||
then
|
then
|
||||||
ynh_script_progression --message="Upgrading the lounge..."
|
ynh_script_progression --message="Upgrading the lounge..."
|
||||||
pushd $final_path
|
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
|
popd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -178,20 +180,22 @@ chown -R $app: $final_path
|
||||||
chown -R $app: $config_path
|
chown -R $app: $config_path
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP SSOWAT
|
# GENERIC FINALIZATION
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Upgrading SSOwat configuration..."
|
# SECURE FILES AND DIRECTORIES
|
||||||
|
|
||||||
# Make app public if necessary or protect it
|
|
||||||
[ $is_public -eq 0 ] || ynh_permission_update --permission "main" --add "visitors"
|
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# INTEGRATE SERVICE IN YUNOHOST
|
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Integrating service in YunoHost..."
|
ynh_script_progression --message="Integrating service in YunoHost..."
|
||||||
|
|
||||||
yunohost service add $app --description "Self-hosted web IRC client" --log_type "systemd"
|
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
|
# START SYSTEMD SERVICE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue