wip
This commit is contained in:
parent
3066ae699b
commit
ea447ba24c
4 changed files with 11 additions and 73 deletions
|
@ -6,80 +6,16 @@ $config['enable_installer'] = true;
|
|||
|
||||
/* Local configuration for Roundcube Webmail */
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$config['db_dsnw'] = '${database['provider']}://${database['user']}:${database['password']}@${database['host']}/${database['name']}';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$config['imap_host'] = 'localhost';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$config['smtp_host'] = 'tls://localhost';
|
||||
|
||||
|
||||
|
||||
$config['smtp_user'] = '%u';
|
||||
|
||||
|
||||
|
||||
$config['smtp_pass'] = '%p';
|
||||
|
||||
|
||||
|
||||
$config['support_url'] = '';
|
||||
|
||||
|
||||
|
||||
|
||||
$config['des_key'] = '${des_key}';
|
||||
|
||||
|
||||
$config['product_name'] = '${product_name}';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$config['plugins'] = array(${', '.join(f'"{plugin}"' for plugin in plugins)});
|
||||
|
||||
|
||||
|
||||
$config['language'] = 'de_DE';
|
||||
|
||||
|
||||
|
||||
$config['smtp_conn_options'] = array(
|
||||
'ssl' => array(
|
||||
'verify_peer' => false,
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
<?php
|
||||
|
||||
|
||||
|
||||
$config['password_driver'] = 'sql';
|
||||
$config['password_strength_driver'] = null;
|
||||
$config['password_confirm_current'] = true;
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
assert node.has_bundle('php')
|
||||
assert node.has_bundle('mailserver')
|
||||
|
||||
version = node.metadata.get('roundcube/version')
|
||||
roundcube_version = node.metadata.get('roundcube/version')
|
||||
php_version = node.metadata.get('php/version')
|
||||
|
||||
directories = {
|
||||
'/opt/roundcube': {
|
||||
|
@ -22,9 +23,9 @@ directories = {
|
|||
}
|
||||
|
||||
|
||||
files[f'/tmp/roundcube-{version}.tar.gz'] = {
|
||||
files[f'/tmp/roundcube-{roundcube_version}.tar.gz'] = {
|
||||
'content_type': 'download',
|
||||
'source': f'https://github.com/roundcube/roundcubemail/releases/download/{version}/roundcubemail-{version}-complete.tar.gz',
|
||||
'source': f'https://github.com/roundcube/roundcubemail/releases/download/{roundcube_version}/roundcubemail-{roundcube_version}-complete.tar.gz',
|
||||
'triggered': True,
|
||||
}
|
||||
actions['delete_roundcube'] = {
|
||||
|
@ -32,11 +33,11 @@ actions['delete_roundcube'] = {
|
|||
'triggered': True,
|
||||
}
|
||||
actions['extract_roundcube'] = {
|
||||
'command': f'tar xfvz /tmp/roundcube-{version}.tar.gz --strip 1 -C /opt/roundcube',
|
||||
'unless': f'grep -q "Version {version}" /opt/roundcube/index.php',
|
||||
'command': f'tar xfvz /tmp/roundcube-{roundcube_version}.tar.gz --strip 1 -C /opt/roundcube',
|
||||
'unless': f'grep -q "Version {roundcube_version}" /opt/roundcube/index.php',
|
||||
'preceded_by': [
|
||||
'action:delete_roundcube',
|
||||
f'file:/tmp/roundcube-{version}.tar.gz',
|
||||
f'file:/tmp/roundcube-{roundcube_version}.tar.gz',
|
||||
],
|
||||
'needs': [
|
||||
'directory:/opt/roundcube',
|
||||
|
@ -64,6 +65,9 @@ files['/opt/roundcube/config/config.inc.php'] = {
|
|||
'needs': [
|
||||
'action:chown_roundcube',
|
||||
],
|
||||
'triggers': [
|
||||
f'svc_systemd:php{php_version}-fpm.service:restart',
|
||||
],
|
||||
}
|
||||
files['/opt/roundcube/plugins/password/config.inc.php'] = {
|
||||
'source': 'password.config.inc.php',
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
],
|
||||
'bundles': [
|
||||
'bind-acme',
|
||||
#'build-ci',
|
||||
'build-ci',
|
||||
'download-server',
|
||||
'islamicstate.eu',
|
||||
#'nginx-rtmps',
|
||||
|
|
Loading…
Reference in a new issue