2018-02-24 21:03:40 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# GENERIC STARTING
|
|
|
|
#=================================================
|
|
|
|
# IMPORT GENERIC HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
2020-04-23 20:44:27 +02:00
|
|
|
source _common.sh
|
|
|
|
source /usr/share/yunohost/helpers
|
|
|
|
|
2018-02-24 21:03:40 +01:00
|
|
|
#=================================================
|
2024-01-09 17:31:18 +01:00
|
|
|
# STORE VARIABLES FOR POST_INSTALL.md
|
2018-02-24 21:03:40 +01:00
|
|
|
#=================================================
|
|
|
|
|
2024-01-09 17:31:18 +01:00
|
|
|
# Get main domain and buid the url of the admin panel of the app.
|
|
|
|
admin_panel="https://$(grep portal_domain /etc/ssowat/conf.json | cut -d'"' -f4)/yunohost/admin/#/apps/$app"
|
|
|
|
ynh_app_setting_set --app="$app" --key=admin_panel --value="$admin_panel"
|
2018-02-24 21:03:40 +01:00
|
|
|
|
2024-01-09 17:31:18 +01:00
|
|
|
# ynh_app_setting_set --app=$app --key=overwrite_periodic --value=1
|
|
|
|
# ynh_app_setting_set --app=$app --key=admin_mail_html --value=1
|
2018-02-24 21:03:40 +01:00
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# CONFIGURE APTICRON
|
|
|
|
#=================================================
|
2020-04-23 20:44:27 +02:00
|
|
|
ynh_script_progression --message="Configuring Apticron..."
|
2018-02-24 21:03:40 +01:00
|
|
|
|
2024-01-09 17:31:18 +01:00
|
|
|
_apticron_set_config
|
2018-02-24 21:03:40 +01:00
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# CONFIGURE UNATTENDED-UPGRADES
|
|
|
|
#=================================================
|
2020-04-23 20:44:27 +02:00
|
|
|
ynh_script_progression --message="Configuring Unattended-Upgrades..."
|
2018-02-24 21:03:40 +01:00
|
|
|
|
2024-01-09 17:31:18 +01:00
|
|
|
_unattended_upgrades_set_config
|
2018-02-24 21:03:40 +01:00
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# CONFIGURE APT PERIODIC FOR UNATTENDED
|
|
|
|
#=================================================
|
2019-01-30 19:18:18 +01:00
|
|
|
ynh_script_progression --message="Configure APT Periodic for Unattended" --weight=2
|
2018-02-24 21:03:40 +01:00
|
|
|
|
2024-01-09 18:07:57 +01:00
|
|
|
_02periodic_set_config
|
2018-02-24 21:03:40 +01:00
|
|
|
|
2019-01-30 19:18:18 +01:00
|
|
|
#=================================================
|
|
|
|
# END OF SCRIPT
|
|
|
|
#=================================================
|
2018-02-24 21:03:40 +01:00
|
|
|
|
2020-04-23 20:44:27 +02:00
|
|
|
ynh_script_progression --message="Installation of $app completed" --last
|