From 8092b5faff840463bedee77231a71beb1fa299b8 Mon Sep 17 00:00:00 2001 From: mwiegand Date: Wed, 23 Feb 2022 18:33:25 +0100 Subject: [PATCH] nextcloud upgrade_status script --- bundles/nextcloud/files/upgrade_status.php | 9 +++++++++ bundles/nextcloud/items.py | 13 +++++++++++-- 2 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 bundles/nextcloud/files/upgrade_status.php diff --git a/bundles/nextcloud/files/upgrade_status.php b/bundles/nextcloud/files/upgrade_status.php new file mode 100644 index 0000000..8c15c3b --- /dev/null +++ b/bundles/nextcloud/files/upgrade_status.php @@ -0,0 +1,9 @@ +&1 1>/dev/null | grep -q "Nextcloud or one of the apps require upgrade"', + 'unless': 'sudo -u www-data php /opt/nextcloud/upgrade_status.php; test $? -ne 99', 'needs': [ + 'file:/opt/nextcloud/upgrade_status.php', 'action:install_nextcloud', ], } @@ -140,7 +150,6 @@ files['/opt/nextcloud/rescan'] = { 'group': 'www-data', 'mode': '550', 'needs': [ - 'directory:/opt/nextcloud', 'action:extract_nextcloud', ], }