server/nextcloud: Restricted regexp modifing nextcloud config

dehydrated
Felix Stupp 5 years ago
parent b9f060a0ce
commit 4c463055b4
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -72,8 +72,9 @@
lineinfile:
backrefs: yes
path: "{{ nextcloud_config }}"
firstmatch: yes
insertafter: "array \\("
regexp: "^(\\s*)0 => '.*',$"
regexp: "^(\\s*)0 => '([^.]\\.)+[^.]*',$"
line: "\\g<1>0 => '{{ domain }}',"
validate: /usr/bin/php %s
@ -82,6 +83,7 @@
lineinfile:
backrefs: yes
path: "{{ nextcloud_config }}"
firstmatch: yes
insertafter: "'version'"
regexp: "^(\\s*)'overwrite.cli.url' => '.*',$"
line: "\\1'overwrite.cli.url' => 'https://{{ domain }}',"

Loading…
Cancel
Save