use readlink instead of realpath as it seems to be more portable
This commit is contained in:
+1
-1
@@ -5,7 +5,7 @@ SERVER_DIR=installations/$INSTALLATION_NAME
|
||||
CONFIG_TEMPLATE=consent
|
||||
PORT=8008
|
||||
# set current directory to script directory
|
||||
BASE_DIR=$(realpath $(dirname $0))
|
||||
BASE_DIR=$(readlink -f $(dirname $0))
|
||||
|
||||
if [[ -d $BASE_DIR/$SERVER_DIR ]]; then
|
||||
echo "synapse is already installed"
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
BASE_DIR=$(realpath $(dirname $0))
|
||||
BASE_DIR=$(readlink -f $(dirname $0))
|
||||
cd $BASE_DIR
|
||||
cd installations/consent
|
||||
source env/bin/activate
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
BASE_DIR=$(realpath $(dirname $0))
|
||||
BASE_DIR=$(readlink -f $(dirname $0))
|
||||
cd $BASE_DIR
|
||||
cd installations/consent
|
||||
source env/bin/activate
|
||||
|
||||
Reference in New Issue
Block a user