Remove directory contents if it exists
This commit is contained in:
parent
8960b0851a
commit
82d353e9d0
|
@ -531,6 +531,9 @@ function install_identity_server {
|
|||
if [ ! -d $INSTALL_DIR/sydent ]; then
|
||||
mkdir -p $INSTALL_DIR/sydent
|
||||
fi
|
||||
if [ -d $INSTALL_DIR/sydent ]; then
|
||||
rm -rf $INSTALL_DIR/sydent/*
|
||||
fi
|
||||
pip install --upgrade --process-dependency-links . -b $INSTALL_DIR/sydent
|
||||
if [ ! "$?" = "0" ]; then
|
||||
echo $'Failed to install matrix identity server'
|
||||
|
|
Loading…
Reference in New Issue