Bläddra i källkod

set timezone

master
förälder
incheckning
b3d20f61e8
3 ändrade filer med 9 tillägg och 1 borttagningar
  1. +2
    -0
      defaults/main.yml
  2. +6
    -0
      tasks/configure.yml
  3. +1
    -1
      templates/config.php.j2

+ 2
- 0
defaults/main.yml Visa fil

@@ -27,3 +27,5 @@ nextcloud_server_names:
- "{{ inventory_hostname }}"

nextcloud_force_downgrade: false

timezone: UTC

+ 6
- 0
tasks/configure.yml Visa fil

@@ -28,6 +28,12 @@
chdir: "{{nextcloud_directory}}"
when: nextcloud_version is version('14.0.0','ge')

- name: nextcloud occ config:system:set logtimezone
command: php occ config:system:set logtimezone --value="{{timezone}}"
args:
chdir: "{{nextcloud_directory}}"
when: _nextcloud_config.system.logtimezone != timezone

- name: nextcloud occ maintenance:update:htaccess
command: php occ maintenance:update:htaccess
args:


+ 1
- 1
templates/config.php.j2 Visa fil

@@ -9,7 +9,7 @@ $CONFIG = array(
'log_type' => 'file',
'logfile' => '{{nextcloud_log_directory}}/nextcloud.log',
'loglevel' => 2,
'logtimezone' => 'UTC',
'logtimezone' => '{{timezone}}',
'appstoreenabled' => true,
'apps_paths' => array(
array(


Laddar…
Avbryt
Spara