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:
Diffstat (limited to 'etc/nextcloudpi-config.d/nc-datadir.sh')
-rw-r--r--etc/nextcloudpi-config.d/nc-datadir.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/etc/nextcloudpi-config.d/nc-datadir.sh b/etc/nextcloudpi-config.d/nc-datadir.sh
index 6bf9d002..b1cc782b 100644
--- a/etc/nextcloudpi-config.d/nc-datadir.sh
+++ b/etc/nextcloudpi-config.d/nc-datadir.sh
@@ -52,8 +52,10 @@ configure()
sudo -u www-data test -x "$BASEDIR" || { echo -e "ERROR: the user www-data does not have access permissions over $BASEDIR"; return 1; }
- [[ $( stat -fc%d / ) == $( stat -fc%d "$BASEDIR" ) ]] && \
- echo -e "INFO: moving data dir to another place in the same SD card\nIf you want to use an external mount, make sure it is properly set up"
+ [[ $( stat -fc%d / ) == $( stat -fc%d "$BASEDIR" ) ]] && {
+ echo "Refusing to move to the SD card. Abort"
+ return 1
+ }
## COPY
cd /var/www/nextcloud