fix upgrade

main
n0emis 4 years ago
parent ab3db12fca
commit 08d2950276
Signed by: n0emis
GPG Key ID: 00FAF748B777CF10

@ -45,11 +45,15 @@
when: not nc_current.stat.lnk_target is defined when: not nc_current.stat.lnk_target is defined
- name: Copy old nextcloud config - name: Copy old nextcloud config
become: yes
become_user: "{{ nextcloud_user }}"
copy: copy:
src: "{{ nextcloud_directory }}/current/config/config.php" src: "{{ nextcloud_directory }}/current/config/config.php"
dest: "{{ nextcloud_install_directory }}/config/config.php" dest: "{{ nextcloud_install_directory }}/config/config.php"
owner: "{{ nextcloud_user }}"
group: "{{ nextcloud_group }}"
remote_src: yes remote_src: yes
when: not nc_current.stat.lnk_target is defined or nc_current.stat.lnk_target != nextcloud_install_directory when: nc_current.stat.lnk_target is defined and nc_current.stat.lnk_target != nextcloud_install_directory
- name: Configure nextcloud - name: Configure nextcloud
become: yes become: yes
@ -80,7 +84,7 @@
group: "{{ nextcloud_group }}" group: "{{ nextcloud_group }}"
state: link state: link
- name: Put nextcloud into maintenance mode - name: Run nextcloud upgrade command
become: yes become: yes
become_user: "{{ nextcloud_user }}" become_user: "{{ nextcloud_user }}"
command: "php occ upgrade --no-interaction" command: "php occ upgrade --no-interaction"

Loading…
Cancel
Save