diff options
author | Marcello Stanisci <stanisci.m@gmail.com> | 2019-06-08 19:18:34 +0200 |
---|---|---|
committer | Marcello Stanisci <stanisci.m@gmail.com> | 2019-06-08 19:18:34 +0200 |
commit | 48a6b115dca6b3b7dba6aa9d0024d4009be85189 (patch) | |
tree | 2075108eda58c79fea9d98619fb1eca4e688771b /bin | |
parent | ad3c848214396a7f8cf9f24a3751629eace636dd (diff) | |
download | deployment-48a6b115dca6b3b7dba6aa9d0024d4009be85189.tar.gz deployment-48a6b115dca6b3b7dba6aa9d0024d4009be85189.tar.bz2 deployment-48a6b115dca6b3b7dba6aa9d0024d4009be85189.zip |
chmod.
shared-data/ itself must be already prepared before
the hier-making script is called.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/taler-deployment-shared-data | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/taler-deployment-shared-data b/bin/taler-deployment-shared-data index bbbdf6c..a9480e8 100755 --- a/bin/taler-deployment-shared-data +++ b/bin/taler-deployment-shared-data @@ -15,7 +15,7 @@ fi SHARED_DATA=$(taler-config -s paths -o taler_deployment_shared -f) -# Check shared-data/ exists & has write permissions for group. +# Check shared-data/ exists if ! test -e $SHARED_DATA; then echo "Please bootstrap your setup first (run 'bootstrap-bluegreen' script?)." exit 1 @@ -27,6 +27,7 @@ if ls -L -1 $SHARED_DATA | grep -q [a-zA-Z]; then exit 0 fi +# Check if it's writeable. if ! test -w $SHARED_DATA; then echo "Can't write under $SHARED_DATA, please ajdust permissions" exit 0 @@ -40,8 +41,6 @@ if ! echo $SHARED_DATA_GROUP | grep -q "^$TALER_CONFIG_ENV$"; then exit 1 fi -chmod g+s $SHARED_DATA - # Double-check if setgid was set. if stat -L --format "%a" $SHARED_DATA | grep -q -v "^[2367][0-9][0-9][0-9]$"; then echo "Please make sure $SHARED_DATA has setgid asserted" |