mirror of
https://github.com/haiwen/seahub.git
synced 2025-06-30 17:02:15 +00:00
16 lines
427 B
Bash
16 lines
427 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
set -e
|
||
|
set -x
|
||
|
|
||
|
SCRIPT=$(readlink -f "$0")
|
||
|
SEAHUB_TESTSDIR=$(dirname "${SCRIPT}")
|
||
|
SEAHUB_SRCDIR=$(dirname "${SEAHUB_TESTSDIR}")
|
||
|
|
||
|
cd "$SEAHUB_SRCDIR"
|
||
|
|
||
|
# install phantomjs
|
||
|
curl -L -o /tmp/phantomjs.tar.bz2 https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-x86_64.tar.bz2
|
||
|
tar -C /tmp -xf /tmp/phantomjs.tar.bz2
|
||
|
sudo install -m 755 /tmp/phantomjs-1.9.7-linux-x86_64/bin/phantomjs /usr/bin/phantomjs
|