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:
authornachoparker <nacho@ownyourbits.com>2017-11-17 02:40:12 +0300
committernachoparker <nacho@ownyourbits.com>2017-11-17 02:40:30 +0300
commit370fc74ac983601b69a7206132a79dc3e8a24f05 (patch)
treecd6a078f6afeeaff486f46dbc90c39d842ba5dc3
parentba765664f7ac9bdda466c39d2253fefafb320d78 (diff)
nc-datadir: refuse to move to SD cardv0.34.16
-rw-r--r--changelog.md4
-rw-r--r--etc/nextcloudpi-config.d/nc-datadir.sh6
2 files changed, 7 insertions, 3 deletions
diff --git a/changelog.md b/changelog.md
index 469359f7..70f4bece 100644
--- a/changelog.md
+++ b/changelog.md
@@ -1,5 +1,7 @@
-[v0.34.15](https://github.com/nextcloud/nextcloudpi/commit/97febf5) (2017-11-16) update: check existence ncp.conf
+[v0.34.16](https://github.com/nextcloud/nextcloudpi/commit/de92843) (2017-11-17) nc-datadir: refuse to move to SD card
+
+[v0.34.15](https://github.com/nextcloud/nextcloudpi/commit/868924c) (2017-11-16) update: check existence ncp.conf
[v0.34.14](https://github.com/nextcloud/nextcloudpi/commit/206b6de) (2017-11-16) update: check return code
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