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', ], }