nc-datadir: lift mountpoint restriction

This commit is contained in:
nachoparker 2019-02-13 17:14:01 -07:00
parent c9c2153373
commit b0703877e6
2 changed files with 3 additions and 7 deletions

View File

@ -56,12 +56,6 @@ configure()
return 1
}
[[ "$DATADIR" != "/var/www/nextcloud/data" ]] && \
[[ $( stat -fc%d / ) == $( stat -fc%d "$BASEDIR" ) ]] && {
echo "Refusing to move to the SD card. Abort"
return 1
}
# backup possibly existing datadir
[ -d $DATADIR ] && {
local BKP="${DATADIR}-$( date "+%m-%d-%y" )"

View File

@ -1,5 +1,7 @@
[v1.6.1](https://github.com/nextcloud/nextcloudpi/commit/d87df8d) (2019-02-10) nc-nextcloud: add a warning
[v1.6.2](https://github.com/nextcloud/nextcloudpi/commit/39966c8) (2019-02-13) nc-datadir: lift mountpoint restriction
[v1.6.1 ](https://github.com/nextcloud/nextcloudpi/commit/3e566f5) (2019-02-10) nc-nextcloud: add a warning
[v1.6.0 ](https://github.com/nextcloud/nextcloudpi/commit/b4bb86d) (2019-02-07) upgrade to NC15.0.4