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

[fix] update plugins contextmenu & automatic_addressbook

This commit is contained in:
magikcypress 2017-06-03 17:54:22 +02:00
parent 98fb8a979e
commit 1a0ebf97ff
No known key found for this signature in database
GPG key ID: 3B3C7CD61957AC9A
2 changed files with 7 additions and 6 deletions

View file

@ -69,17 +69,15 @@ ynh_substitute_char "#DBNAME#" "$dbname" "$rc_conf"
# Install files and set permissions # Install files and set permissions
sudo mkdir -p "${final_path}/logs" "${final_path}/temp" sudo mkdir -p "${final_path}/logs" "${final_path}/temp"
sudo chown -R $app: "${final_path}"
# Install some plugins manually # Install some plugins manually
sudo cp -r ../sources/plugins/ldapAliasSync "${final_path}/plugins" sudo cp -r ../sources/plugins/ldapAliasSync "${final_path}/plugins"
sudo chown -R $app: "${final_path}/plugins/ldapAliasSync"
installed_plugins=" 'ldapAliasSync'," installed_plugins=" 'ldapAliasSync',"
# Install additional plugins # Install additional plugins
exec_composer admin "$final_path" require \ exec_composer admin "$final_path" require \
"johndoh/contextmenu dev-release-2.1" \ "johndoh/contextmenu 2.1.2" \
"sblaisot/automatic_addressbook" "sblaisot/automatic_addressbook 0.4.2"
installed_plugins+=" 'contextmenu', 'automatic_addressbook'," installed_plugins+=" 'contextmenu', 'automatic_addressbook',"
# Instal CardDAV plugin # Instal CardDAV plugin
@ -93,6 +91,9 @@ fi
sudo sed -i "s#^\s*// installed plugins#&\n ${installed_plugins}#" \ sudo sed -i "s#^\s*// installed plugins#&\n ${installed_plugins}#" \
"${final_path}/config/config.inc.php" "${final_path}/config/config.inc.php"
# Change owner final_path directory
sudo chown -R $app: "${final_path}"
# Modify Nginx configuration file and copy it to Nginx conf directory # Modify Nginx configuration file and copy it to Nginx conf directory
ynh_nginx_config ynh_nginx_config

View file

@ -88,8 +88,8 @@ installed_plugins=" 'ldapAliasSync',"
# Update or install additional plugins # Update or install additional plugins
exec_composer admin "${final_path}" require \ exec_composer admin "${final_path}" require \
"johndoh/contextmenu dev-release-2.1" \ "johndoh/contextmenu 2.1.2" \
"sblaisot/automatic_addressbook" "sblaisot/automatic_addressbook 0.4.2"
installed_plugins+=" 'contextmenu', 'automatic_addressbook'," installed_plugins+=" 'contextmenu', 'automatic_addressbook',"
# Guess with_carddav value if empty # Guess with_carddav value if empty