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