Roundcube Community Forum

News and Announcements => General Discussion => Topic started by: husky83 on February 02, 2014, 03:01:19 PM

Title: Automating plugin updates
Post by: husky83 on February 02, 2014, 03:01:19 PM
Hi,
I thought I'd like to have my linux server update the installed plugins through composer via cron job. Here's my first approach:
#!/bin/bash
# change to dir                                                                                                                                                 
cd /var/www/roundcubemail-1.0-beta/                                                                                                                             
# update composer                                                                                                                                               
php composer.phar --quiet selfupdate                                                                                                                             
# update plugins                                                                                                                                                 
php composer.phar --quiet --no-interaction update

# copy remaining plugins to plugin dir
cp -r vendor/cor/* plugins/

# install default config file for plugins
cp plugins/markasjunk2/config.inc.php.dist plugins/markasjunk2/config.inc.php
cp plugins/html5_notifier/config/config.inc.php.dist plugins/html5_notifier/config/config.inc.php
cp plugins/compose_addressbook/config.inc.php.dist plugins/compose_addressbook/config.inc.php
cp plugins/custom_from/custom_from/config.inc.php.dist plugins/custom_from/custom_from/config.inc.php
cp plugins/sieverules/config.inc.php.dist plugins/sieverules/config.inc.php


I'm not particularly good at coding, there's probably room for improvement, but that's not my problem.

The problem that makes me ask for help is the fact, that php composer.phar --quiet --no-interaction update still asks whether I'd like to activate this plugin or not.

Any hints anyone how to get rid of that?