diff options
author | nachoparker <nacho@ownyourbits.com> | 2021-09-20 03:48:25 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2021-09-20 18:59:35 +0300 |
commit | 534b9b505d3c91e688a1c22a4ab7eddf58204132 (patch) | |
tree | cab8d865f1ea2012df74ce9e2148c5b484f33455 | |
parent | cb184d2bdeb7044ee465512bc7dd8d59cf5dd7a8 (diff) |
ncp-update-nc: pre-check that NC is currently working finev1.39.6
Signed-off-by: nachoparker <nacho@ownyourbits.com>
-rwxr-xr-x | bin/ncp-update-nc | 1 | ||||
-rw-r--r-- | changelog.md | 8 |
2 files changed, 8 insertions, 1 deletions
diff --git a/bin/ncp-update-nc b/bin/ncp-update-nc index df9b0591..2bec0aa5 100755 --- a/bin/ncp-update-nc +++ b/bin/ncp-update-nc @@ -30,6 +30,7 @@ source /usr/local/etc/library.sh [[ -f /.docker-image ]] && BASEDIR=/data || BASEDIR=/var/www cd "$BASEDIR" DATADIR="$( grep datadirectory nextcloud/config/config.php | awk '{ print $3 }' | grep -oP "[^']*[^']" | head -1 )" +ncc status &>/dev/null || { echo "Nextcloud is currently down"; exit 1; } [[ -d /var/www/nextcloud-old ]] && { echo "Nextcloud backup directory found. Interrupted or already running installation?"; exit 1; } [[ -d /var/www/nextcloud ]] || { echo "Nextcloud directory not found" ; exit 1; } [[ -d "$DATADIR" ]] || { echo "Nextcloud data directory not found" ; exit 1; } diff --git a/changelog.md b/changelog.md index 6b935d61..a9a6ad3b 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,11 @@ -[v1.39.3](https://github.com/nextcloud/nextcloudpi/commit/295144c) (2021-09-18) letsencrypt: improve active status check +[v1.39.6](https://github.com/nextcloud/nextcloudpi/commit/9018be4) (2021-09-19) ncp-update-nc: pre-check that NC is currently working fine + +[v1.39.5 ](https://github.com/nextcloud/nextcloudpi/commit/dca742a) (2021-09-19) ncp-update-nc: dont keep notifying when there is nothing to upgrade + +[v1.39.4 ](https://github.com/nextcloud/nextcloudpi/commit/18a0200) (2021-09-19) improve btrfs/ext checks + +[v1.39.3](https://github.com/nextcloud/nextcloudpi/commit/08302d8) (2021-09-18) letsencrypt: improve active status check [v1.39.2 ](https://github.com/nextcloud/nextcloudpi/commit/fb5a2f3) (2021-09-18) nextcloud-domain: make sure redis is running before it starts |