mirror of https://github.com/mindoc-org/mindoc.git
pull/51/head
parent
ef1551b79e
commit
cf72b445a0
9
start.sh
9
start.sh
|
@ -32,18 +32,15 @@ if [ ! -z $HTTP_PORT ] ; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -z $CDNJS ]; then
|
if [ ! -z $CDNJS ]; then
|
||||||
cdnjs=${CDNJS/\/\//\\/\\/}
|
sed -i "s#^cdnjs.*#cdnjs=$CDNJS#g" conf/app.conf
|
||||||
sed -i "s/^cdnjs.*/cdnjs=$cdnjs/g" conf/app.conf
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -z $CDNCSS ]; then
|
if [ ! -z $CDNCSS ]; then
|
||||||
cdncss=${CDNCSS/\/\//\\/\\/}
|
sed -i "s#^cdncss.*#cdncss=$CDNCSS#g" conf/app.conf
|
||||||
sed -i "s/^cdncss.*/cdncss=$cdnjs/g" conf/app.conf
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -z $CDN ]; then
|
if [ ! -z $CDN ]; then
|
||||||
cdn=${CDN/\/\//\\/\\/}
|
sed -i "s#^cdn.*#cdn=$CDN#g" conf/app.conf
|
||||||
sed -i "s/^cdn.*/cdn=$cdn/g" conf/app.conf
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sed -i 's/^runmode.*/runmode=prod/g' conf/app.conf
|
sed -i 's/^runmode.*/runmode=prod/g' conf/app.conf
|
||||||
|
|
Loading…
Reference in New Issue