Bonsoir,
J’ai recuperé le script ugrade et je l’ai purgé pour ne configurer que roundcube avec le plugin carddav. Il fait parfaitement le boulot.
Tout est ok les fichiers de conf, la base de données, mais rien dans roundcube, je perd mon latin:
Je precise que baikal est operationnel, je l’ai testé avec un client android.
Voici le script allegé:
#!/bin/bash
domain=$(sudo yunohost app setting roundcube domain)
path=$(sudo yunohost app setting roundcube path)
deskey=$(dd if=/dev/urandom bs=1 count=200 2> /dev/null | tr -c -d '[A-Za-z0-9]' | sed -n 's/\(.\{24\}\).*/\1/p')
db_user=roundcube
db_pwd=$(sudo yunohost app setting roundcube mysqlpwd)
db_file=../sources/SQL/mysql/$(ls -tr -1 ../sources/SQL/mysql | head -1)
final_path=/var/www/roundcube
# Install rcmcarddav if baikal is detected
sudo yunohost app list -f baikal --json | grep '"installed": true'
if [ "$?" -eq 0 ]; then
echo "Detected Baikal"
caldavdomain=$(sudo yunohost app setting baikal domain)
caldavpath=$(sudo yunohost app setting baikal path)
caldavpath=${caldavpath%/}
sed -i "s@yuno_baikal_domain@$caldavdomain@g" ../conf/rcmcarddav.config.inc.php
sed -i "s@yuno_baikal_path@$caldavpath@g" ../conf/rcmcarddav.config.inc.php
sudo cp ../conf/rcmcarddav.config.inc.php $final_path/plugins/carddav/config.inc.php
sudo sed -i "s@yuno_enable_carddav@True@g" $final_path/config/main.inc.php
mysql -u $db_user -p$db_pwd $db_user < ../sources/plugins/carddav/dbinit/mysql-drop.sql
mysql -u $db_user -p$db_pwd $db_user < ../sources/plugins/carddav/dbinit/mysql.sql
else
mysql -u $db_user -p$db_pwd $db_user < ../sources/plugins/carddav/dbinit/mysql-drop.sql
sudo sed -i "s@yuno_enable_carddav@False@g" $final_path/config/main.inc.php
fi
sudo service php5-fpm restart
sudo service nginx reload
sudo yunohost app ssowatconf
voici la section modifiée dans /var/www/roundcube/config/main.inc.php
// List of active plugins (in plugins/ directory)
$rcmail_config['plugins'] = array('http_authentication', 'archive', 'new_user_identity', 'managesieve', 'markasjunk', 'new_user_dialog', 'contextmenu', 'automatic_addressbook', 'ldapAliasSync');
if (**True**) {
array_push($rcmail_config['plugins'], 'carddav');
}
Voici la section modifiée dans /var/www/roundcube/plugins/carddav/config.inc.php
prefs['baikal'] = array(
// required attributes
'name' => 'CardDAV',
// will be substituted for the roundcube username
'username' => '%u',
// will be substituted for the roundcube password
'password' => '%p',
// %u will be substituted for the CardDAV username
'url' => 'https://mondomamoi.fr/baikal/card.php/addressbooks/%u/default/',
'active' => true,
'readonly' => false,
'refresh_time' => '00:05:00',
'fixed' => array( 'username', 'password' ),
'hide' => false,