bashclub / zamba-lxc-toolbox

Zamba LXC Toolbox a script collection to setup LXC containers on Proxmox + ZFS. Zamba is the fusion of ZFS and Samba (standalone, active directory dc or active directory member), preconfigured to access ZFS snapshots by "Previous Versions" to easily recover encrypted by ransomware files, accidently deleted files or just to revert changes.
https://aow.de/
GNU General Public License v3.0
290 stars 62 forks source link

Use LXC_TIMEZONE in nextcloud/mailpiler instead of hardcoded "Europe/Berlin" #50

Closed hpannenb closed 2 years ago

hpannenb commented 2 years ago

Nextcloud and mailpiler installation scripts do not use the configured LXC_TIMEZONE of zamba.conf but "Europe/Berlin" hardcoded instead.

hpannenb commented 2 years ago

Nextcloud:

hpannenb commented 2 years ago

For line 63 and 70 it is maybe better to use "s|;date.timezone.*|date.timezone = $LXC_TIMEZONE|" to make it work without escaping (Source: https://www.brianchildress.co/using-variables-with-sed/)

hpannenb commented 2 years ago

Installing nextcloud with e.g. LXC_TIMEZONE="Europe/Amsterdam" works as supposed to. Mailpiler's container uses this as well now. Issue fixed. Thanks for all the effort spent.