diff options
author | nachoparker <nacho@ownyourbits.com> | 2018-09-25 02:47:02 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2018-09-25 02:47:06 +0300 |
commit | cdbb750e716824cc9af11bab33e7cfd5b400416f (patch) | |
tree | bff95c55c3180ce7d95729838fe1b4bed0e9036d /bin/ncp-update-nc | |
parent | 1150ed8bfeb2d57bcb0a0c0c5623b9cdac787155 (diff) |
docker: disable auto-upgrade until it is adapted to containersv0.60.7
Diffstat (limited to 'bin/ncp-update-nc')
-rwxr-xr-x | bin/ncp-update-nc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/ncp-update-nc b/bin/ncp-update-nc index 79a9eb8a..dc4d759c 100755 --- a/bin/ncp-update-nc +++ b/bin/ncp-update-nc @@ -23,6 +23,8 @@ VER="$1" # pre-checks #################### +[[ -f /.docker-image ]] && { echo "This feature is still not available for docker containers"; exit 1; } + cd /var/www/ DATADIR="$( grep datadirectory nextcloud/config/config.php | awk '{ print $3 }' | grep -oP "[^']*[^']" | head -1 )" [[ -d /var/www/nextcloud-old ]] && { echo "Nextcloud backup directory found. Interrupted installation?"; exit 1; } |