1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/roundcube_ynh.git synced 2024-09-03 20:16:28 +02:00

Update upgrade

This commit is contained in:
orhtej2 2023-10-16 23:10:59 +02:00 committed by GitHub
parent 1f81a45adb
commit 7b47fd7253
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -197,6 +197,7 @@ then
# UPGRADE ADDITIONAL PLUGINS
#=================================================
ynh_script_progression --message="Upgrading additional plugins..." --weight=30
ynh_script_progression --message="LDAP..." --weight=1
# Create logs and temp directories
mkdir -p "$final_path/"{logs,temp}
@ -204,6 +205,8 @@ then
# Install net_LDAP
ynh_composer_exec --commands="require kolab/net_ldap3"
ynh_script_progression --message="Address book..." --weight=1
# Update or install contextmenu and automatic_addressbook plugins
# https://plugins.roundcube.net/packages/sblaisot/automatic_addressbook
# https://plugins.roundcube.net/packages/johndoh/contextmenu
@ -217,6 +220,7 @@ then
mkdir -p "$final_path/plugins/enigma/home"
chown -R $app:$app "$final_path/plugins/enigma/home"
ynh_script_progression --message="CardDAV..." --weight=1
# Update or install CardDAV plugin
if [ $with_carddav -eq 1 ]
then
@ -231,9 +235,11 @@ then
# Look for installed and supported CardDAV servers
for carddav_app in "nextcloud" "baikal"
do
ynh_script_progression --message="Inspecting $carddav_app..." --weight=1
carddav_app_ids=$(yunohost app list | grep "id: $carddav_app" | grep -Po 'id: \K(.*)' || echo "")
for carddav_app_id in $carddav_app_ids
do
ynh_script_progression --message="Integrating $carddav_app..." --weight=1
carddav_server=1
# Append preset configuration to the config file
cat "../conf/${carddav_app}.inc.php" >> $final_path/plugins/carddav/config.inc.php