5 |
# |
# |
6 |
# If running on a raspberry 1(A/B) raspian/wheezy - downgrade node.js to 5.4.0 |
# If running on a raspberry 1(A/B) raspian/wheezy - downgrade node.js to 5.4.0 |
7 |
# Please note that raspian/wheezy for arm defaults to gcc 4.6 |
# Please note that raspian/wheezy for arm defaults to gcc 4.6 |
8 |
# gcc 4.7 is needed for compiling node-js modules |
# <strike>gcc 4.7</strike> is needed for compiling node-js modules |
9 |
|
# 2017-01-03 gcc 4.8 is required |
10 |
|
|
11 |
BRANCH=stable |
BRANCH=stable |
12 |
|
|
169 |
#xo-web |
#xo-web |
170 |
echo "building xo-web" |
echo "building xo-web" |
171 |
cd xo-web |
cd xo-web |
172 |
#npm install --unsafe-perm || exit |
npm install --unsafe-perm || exit |
173 |
npm install || exit |
#npm install || exit |
174 |
npm run build || exit |
npm run build || exit |
175 |
cd .. |
cd .. |
176 |
|
|
191 |
# cp xo-web-v4/dist/images/logo_small.png xo-web/dist/images/logo_small.png |
# cp xo-web-v4/dist/images/logo_small.png xo-web/dist/images/logo_small.png |
192 |
#fi |
#fi |
193 |
|
|
194 |
|
dir=`dirname $0` |
195 |
|
|
196 |
if [ ! -f "/etc/xo-server/config.yaml" ] ; then |
if [ ! -f "/etc/xo-server/config.yaml" ] ; then |
197 |
if [ ! -d "/etc/xo-server" ] ; then |
if [ ! -d "/etc/xo-server" ] ; then |
198 |
mkdir /etc/xo-server |
mkdir /etc/xo-server |
199 |
fi |
fi |
200 |
|
copy $dir/config.yaml /etc/xo-server/config.yaml |
|
echo "please setup /etc/xo-server/config.yaml" |
|
|
exit |
|
201 |
fi |
fi |
202 |
|
|
203 |
echo Installing plugins |
echo Installing plugins |