mirror of
https://github.com/nextcloud/nextcloudpi.git
synced 2026-01-10 15:12:01 -03:30
nc-datadir.sh: Prevent btrfs commands from being executed on docker
Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com> Signed-off-by: Tobias Knöppler <6317548+theCalcaholic@users.noreply.github.com>
This commit is contained in:
parent
0c3ac35e39
commit
731e25e36b
@ -106,7 +106,7 @@ configure()
|
||||
echo "moving data directory from ${SRCDIR} to ${BASEDIR}..."
|
||||
|
||||
# use subvolumes, if BTRFS
|
||||
[[ "$(stat -fc%T "${BASEDIR}")" == "btrfs" ]] && {
|
||||
[[ "$(stat -fc%T "${BASEDIR}")" == "btrfs" ]] && ! is_docker && {
|
||||
echo "BTRFS filesystem detected"
|
||||
rmdir "${BASEDIR}"
|
||||
btrfs subvolume create "${BASEDIR}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user