pull/51/head
Minho 2017-05-15 17:33:57 +08:00
parent ef1551b79e
commit cf72b445a0
1 changed files with 3 additions and 6 deletions

View File

@ -32,18 +32,15 @@ if [ ! -z $HTTP_PORT ] ; then
fi
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
if [ ! -z $CDNCSS ]; then
cdncss=${CDNCSS/\/\//\\/\\/}
sed -i "s/^cdncss.*/cdncss=$cdnjs/g" conf/app.conf
sed -i "s#^cdncss.*#cdncss=$CDNCSS#g" conf/app.conf
fi
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
sed -i 's/^runmode.*/runmode=prod/g' conf/app.conf