Merge "chown -R to ensure that stack user owns data_dir"
This commit is contained in:
6
stack.sh
6
stack.sh
@@ -193,9 +193,7 @@ fi
|
|||||||
|
|
||||||
# Create the destination directory and ensure it is writable by the user
|
# Create the destination directory and ensure it is writable by the user
|
||||||
sudo mkdir -p $DEST
|
sudo mkdir -p $DEST
|
||||||
if [ ! -w $DEST ]; then
|
sudo chown -R $STACK_USER $DEST
|
||||||
sudo chown $STACK_USER $DEST
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Set ``OFFLINE`` to ``True`` to configure ``stack.sh`` to run cleanly without
|
# Set ``OFFLINE`` to ``True`` to configure ``stack.sh`` to run cleanly without
|
||||||
# Internet access. ``stack.sh`` must have been previously run with Internet
|
# Internet access. ``stack.sh`` must have been previously run with Internet
|
||||||
@@ -210,7 +208,7 @@ ERROR_ON_CLONE=`trueorfalse False $ERROR_ON_CLONE`
|
|||||||
# Destination path for service data
|
# Destination path for service data
|
||||||
DATA_DIR=${DATA_DIR:-${DEST}/data}
|
DATA_DIR=${DATA_DIR:-${DEST}/data}
|
||||||
sudo mkdir -p $DATA_DIR
|
sudo mkdir -p $DATA_DIR
|
||||||
sudo chown $STACK_USER $DATA_DIR
|
sudo chown -R $STACK_USER $DATA_DIR
|
||||||
|
|
||||||
|
|
||||||
# Common Configuration
|
# Common Configuration
|
||||||
|
|||||||
Reference in New Issue
Block a user