mirror of
https://github.com/zokradonh/kopano-docker.git
synced 2026-08-21 13:23:09 +00:00
Added automatic Z-Push shared folder registration.
Via a new environment variable containing the relevant information in a JSON string, shared folders can be specifified which will be set using Z-Push's $additionalFolders configuration option.
This commit is contained in:
committed by
Felix Bartels
parent
cbe582b8ff
commit
4dac253cf2
@@ -35,6 +35,41 @@ tests:
|
||||
stdout:
|
||||
contains:
|
||||
- "define('USERNAME', 'SYSTEM');"
|
||||
start-service script (no additional folders):
|
||||
command: bash -c "shopt -s expand_aliases; alias exec='echo exec'; alias php-fpm7.0='echo php-fpm7.0'; . /kopano/start.sh" && cat /etc/z-push/z-push.conf.php
|
||||
exit-code: 0
|
||||
stdout:
|
||||
contains:
|
||||
- " $additionalFolders = array(\n );"
|
||||
not-contains: # default entry
|
||||
- "\t$additionalFolders = array("
|
||||
- "\t);"
|
||||
start-service script (empty additional folders):
|
||||
command: bash -c "shopt -s expand_aliases; alias exec='echo exec'; alias php-fpm7.0='echo php-fpm7.0'; . /kopano/start.sh" && cat /etc/z-push/z-push.conf.php
|
||||
exit-code: 0
|
||||
stdout:
|
||||
contains:
|
||||
- " $additionalFolders = array(\n );"
|
||||
not-contains: # default entry
|
||||
- "\t$additionalFolders = array("
|
||||
- "\t);"
|
||||
config:
|
||||
env:
|
||||
ZPUSH_ADDITIONAL_FOLDERS: "[]"
|
||||
start-service script (set additional folders):
|
||||
command: bash -c "shopt -s expand_aliases; alias exec='echo exec'; alias php-fpm7.0='echo php-fpm7.0'; . /kopano/start.sh" && cat /etc/z-push/z-push.conf.php
|
||||
exit-code: 0
|
||||
stdout:
|
||||
contains:
|
||||
- " $additionalFolders = array(\n array('store' => \"SYSTEM\", 'folderrid' => \"42\", 'name' => \"Calendar\", 'type' => \"SYNC_FOLDER_TYPE_USER_APPOINTMENT\", 'flags' => \"4\"),\n array('store' => \"SYSTEM\", 'folderrid' => \"21\", 'name' => \"Mail\", 'type' => \"SYNC_FOLDER_TYPE_USER_MAIL\", 'flags' => \"0\"),\n );"
|
||||
not-contains: # default entry
|
||||
- "\t$additionalFolders = array("
|
||||
- "\t);"
|
||||
config:
|
||||
env:
|
||||
ZPUSH_ADDITIONAL_FOLDERS: "[{\"name\":\"Calendar\",\"id\":\"42\",\"type\":\"SYNC_FOLDER_TYPE_USER_APPOINTMENT\",\"flags\":\"4\"},{\"name\":\"Mail\",\"id\":\"21\",\"type\":\"SYNC_FOLDER_TYPE_USER_MAIL\",\"flags\":\"0\"}]"
|
||||
|
||||
|
||||
config:
|
||||
env:
|
||||
DEBUG: ${DEBUG}
|
||||
|
||||
Reference in New Issue
Block a user