From 362ec8c85f8ef6fdc8e37cc0333f86792accb898 Mon Sep 17 00:00:00 2001 From: SecretMineDE Date: Tue, 19 Dec 2023 13:13:33 +0100 Subject: [PATCH] minor fixes --- tasks/main_loop.yml | 2 +- tasks/occ_command.yml | 2 +- tasks/update.yml | 9 +++++---- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/tasks/main_loop.yml b/tasks/main_loop.yml index af50520..3db0002 100644 --- a/tasks/main_loop.yml +++ b/tasks/main_loop.yml @@ -15,7 +15,7 @@ - name: "{{ nextcloud_path }}: Main Update block" when: "nextcloud_update_needed" block: - - name: "Run Update" + - name: "{{ nextcloud_path }}: Entering Updater" include_tasks: "update.yml" when: nextcloud_update_needed diff --git a/tasks/occ_command.yml b/tasks/occ_command.yml index 131c173..cac4d27 100644 --- a/tasks/occ_command.yml +++ b/tasks/occ_command.yml @@ -1,5 +1,5 @@ --- -- name: "Run OCC Command: {{ occ_command }}" +- name: "{{ nextcloud_path }}: Run OCC Command: {{ occ_command }}" become: true become_user: "{{ nextcloud_user }}" shell: diff --git a/tasks/update.yml b/tasks/update.yml index 3d0f721..5d8773c 100644 --- a/tasks/update.yml +++ b/tasks/update.yml @@ -1,21 +1,22 @@ --- -- name: "Run Updater" +- name: "{{ nextcloud_path }}: Run Updater.phar" become: true become_user: "{{ nextcloud_user }}" shell: + chdir: "{{ nextcloud_path }}/updater" cmd: "alias \"php={{ php_binary }} {{ php_arguments }}\"; php {{ nextcloud_path }}/updater/updater.phar --no-interaction" -- name: "Disable Maintenance-Mode" +- name: "{{ nextcloud_path }}: Disable Maintenance-Mode" include_tasks: "occ_command.yml" vars: occ_command: "maintenance:mode --off" -- name: "Run Updater Part 2" +- name: "{{ nextcloud_path }}: Run Updater Part 2" include_tasks: "occ_command.yml" vars: occ_command: "upgrade --no-interaction" -- name: "Disable Maintenance-Mode" +- name: "{{ nextcloud_path }}: Disable Maintenance-Mode" include_tasks: "occ_command.yml" vars: occ_command: "maintenance:mode --off" \ No newline at end of file