only install synapse and riot if directory is not already there
This commit is contained in:
parent
a4e7b14728
commit
96374f4e54
2 changed files with 18 additions and 4 deletions
|
@ -6,7 +6,14 @@ CONFIG_TEMPLATE=consent
|
|||
PORT=8008
|
||||
# set current directory to script directory
|
||||
BASE_DIR=$(realpath $(dirname $0))
|
||||
pushd $BASE_DIR
|
||||
|
||||
if [[ -d $BASE_DIR/$SERVER_DIR ]]; then
|
||||
echo "synapse is already installed"
|
||||
exit
|
||||
fi
|
||||
|
||||
pushd $BASE_DIR > /dev/null
|
||||
|
||||
mkdir -p installations/
|
||||
curl https://codeload.github.com/matrix-org/synapse/zip/$SYNAPSE_BRANCH --output synapse.zip
|
||||
unzip synapse.zip
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue