How to install custom plugins in roundcube?
elg0ch0 opened this issue · comments
I'm trying to integrate a Calendar into iredmail/roundcube (https://packagist.org/packages/kolab/calendar#3.5.7)
I tried plugin installation following what #65 says but it doesn't work, doing only that, so I managed to make it work after:
- Install the plugin in /opt/www/roundcubemail-1.4.11/plugins
- Move it to /opt/iredmail/custom/roundcube/plugins
however, when I tried to install sabre/vobject:
php /usr/local/bin/composer require sabre/vobject "~3.5.3"
it doesn't work since it installs in /opt/www/roundcubemail-1.4.11/vendor folder and this folder is overwritten everytime that the container is restarted
Is there any other way to integrate a Calendar? am I missing something here?
Thanks,
Use /opt/iredmail/custom/roundcube/custom.sh
to create symbol link of that vendor directory.
(thanks for the quick reply!)
What do you mean?
Is /opt/iredmail/custom/roundcube/custom.sh_ executed at startup time?
I tried it but nothing happened.
I just found that /docker/entrypoints/roundcube.sh creates some links at startup but I'd need to generate a new image to update it (I'd like to keep the original one as much as possible to simplify updates):
# Create symlinks for custom skins/plugins.
create_rc_symlink_subdir ${ROUNDCUBE_CUSTOM_PLUGINS_DIR} ${ROUNDCUBE_DOCUMENT_ROOT_SYMLINK}/plugins
create_rc_symlink_subdir ${ROUNDCUBE_CUSTOM_SKINS_DIR} ${ROUNDCUBE_DOCUMENT_ROOT_SYMLINK}/skins
ln -sf ${ROUNDCUBE_CUSTOM_IMAGES_DIR} ${ROUNDCUBE_DOCUMENT_ROOT_SYMLINK}/images
Finally, I created my own image that includes the required plugins (installation performed via Dockerfile).