mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 04:21:57 +03:00
use readlink instead of realpath as it seems to be more portable
This commit is contained in:
parent
5e1517eb4d
commit
5389a42bc1
6 changed files with 6 additions and 6 deletions
|
@ -1,6 +1,6 @@
|
||||||
RIOT_BRANCH=master
|
RIOT_BRANCH=master
|
||||||
|
|
||||||
BASE_DIR=$(realpath $(dirname $0))
|
BASE_DIR=$(readlink -f $(dirname $0))
|
||||||
if [[ -d $BASE_DIR/riot-web ]]; then
|
if [[ -d $BASE_DIR/riot-web ]]; then
|
||||||
echo "riot is already installed"
|
echo "riot is already installed"
|
||||||
exit
|
exit
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
PORT=8080
|
PORT=8080
|
||||||
echo "running riot on http://localhost:$PORT..."
|
echo "running riot on http://localhost:$PORT..."
|
||||||
BASE_DIR=$(realpath $(dirname $0))
|
BASE_DIR=$(readlink -f $(dirname $0))
|
||||||
cd $BASE_DIR/
|
cd $BASE_DIR/
|
||||||
pushd riot-web/webapp/ > /dev/null
|
pushd riot-web/webapp/ > /dev/null
|
||||||
python -m SimpleHTTPServer $PORT > /dev/null 2>&1 &
|
python -m SimpleHTTPServer $PORT > /dev/null 2>&1 &
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
BASE_DIR=$(realpath $(dirname $0))
|
BASE_DIR=$(readlink -f $(dirname $0))
|
||||||
cd $BASE_DIR
|
cd $BASE_DIR
|
||||||
PIDFILE=riot.pid
|
PIDFILE=riot.pid
|
||||||
kill $(cat $PIDFILE)
|
kill $(cat $PIDFILE)
|
||||||
|
|
|
@ -5,7 +5,7 @@ SERVER_DIR=installations/$INSTALLATION_NAME
|
||||||
CONFIG_TEMPLATE=consent
|
CONFIG_TEMPLATE=consent
|
||||||
PORT=8008
|
PORT=8008
|
||||||
# set current directory to script directory
|
# set current directory to script directory
|
||||||
BASE_DIR=$(realpath $(dirname $0))
|
BASE_DIR=$(readlink -f $(dirname $0))
|
||||||
|
|
||||||
if [[ -d $BASE_DIR/$SERVER_DIR ]]; then
|
if [[ -d $BASE_DIR/$SERVER_DIR ]]; then
|
||||||
echo "synapse is already installed"
|
echo "synapse is already installed"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
BASE_DIR=$(realpath $(dirname $0))
|
BASE_DIR=$(readlink -f $(dirname $0))
|
||||||
cd $BASE_DIR
|
cd $BASE_DIR
|
||||||
cd installations/consent
|
cd installations/consent
|
||||||
source env/bin/activate
|
source env/bin/activate
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
BASE_DIR=$(realpath $(dirname $0))
|
BASE_DIR=$(readlink -f $(dirname $0))
|
||||||
cd $BASE_DIR
|
cd $BASE_DIR
|
||||||
cd installations/consent
|
cd installations/consent
|
||||||
source env/bin/activate
|
source env/bin/activate
|
||||||
|
|
Loading…
Reference in a new issue