Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2018-10-15 01:03:15 +0300
committernachoparker <nacho@ownyourbits.com>2018-10-15 01:35:41 +0300
commitd6b7267bc295cb39c55dfd7291cba3f0bb1cdf77 (patch)
tree3ffb9ca953bd1e09e40ee76cb632c445adfa15f2
parentc03652522f3479f27f454b990d6d7dad1fc1c5aa (diff)
ncp-update-nc: make sure cron.php is not running and there are no pending jobsv0.64.2
-rwxr-xr-xbin/ncp-update-nc6
-rw-r--r--changelog.md4
2 files changed, 9 insertions, 1 deletions
diff --git a/bin/ncp-update-nc b/bin/ncp-update-nc
index 6ac0d137..273f568a 100755
--- a/bin/ncp-update-nc
+++ b/bin/ncp-update-nc
@@ -61,6 +61,12 @@ echo "Current Nextcloud version $CURRENT"
echo "Available Nextcloud version $VER"
[[ "$NEED_UPDATE" == "true" ]] || { echo "Nothing to update"; exit 1; }
+# make sure that cron.php is not running and there are no pending jobs
+# https://github.com/nextcloud/server/issues/10949
+pgrep -cf cron.php &>/dev/null && { pkill -f cron.php; sleep 3; }
+pgrep -cf cron.php &>/dev/null && { echo "cron.php running. Abort"; exit 1; }
+mysql nextcloud <<<"UPDATE oc_jobs SET reserved_at=0;"
+
# cleanup
####################
cleanup() {
diff --git a/changelog.md b/changelog.md
index 2f0a73d6..19a825f5 100644
--- a/changelog.md
+++ b/changelog.md
@@ -1,5 +1,7 @@
-[v0.64.1](https://github.com/nextcloud/nextcloudpi/commit/86c90e1) (2018-10-12) docker: make bin persistent too
+[v0.64.2](https://github.com/nextcloud/nextcloudpi/commit/10562dc) (2018-10-14) ncp-update-nc: make sure cron.php is not running and there are no pending jobs
+
+[v0.64.1](https://github.com/nextcloud/nextcloudpi/commit/c036525) (2018-10-12) docker: make bin persistent too
[v0.64.0 ](https://github.com/nextcloud/nextcloudpi/commit/a9b1542) (2018-10-12) upgrade to NC14.0.3