mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-04-05 20:17:53 +08:00
*
This commit is contained in:
parent
07747d0489
commit
ef1551b79e
9
start.sh
9
start.sh
@ -32,15 +32,18 @@ if [ ! -z $HTTP_PORT ] ; then
|
||||
fi
|
||||
|
||||
if [ ! -z $CDNJS ]; then
|
||||
sed -i "s/^cdnjs.*/cdnjs=${CDNJS/\/\//\\/\\/}/g" conf/app.conf
|
||||
cdnjs=${CDNJS/\/\//\\/\\/}
|
||||
sed -i "s/^cdnjs.*/cdnjs=$cdnjs/g" conf/app.conf
|
||||
fi
|
||||
|
||||
if [ ! -z $CDNCSS ]; then
|
||||
sed -i "s/^cdncss.*/cdncss=${CDNCSS/\/\//\\/\\/}/g" conf/app.conf
|
||||
cdncss=${CDNCSS/\/\//\\/\\/}
|
||||
sed -i "s/^cdncss.*/cdncss=$cdnjs/g" conf/app.conf
|
||||
fi
|
||||
|
||||
if [ ! -z $CDN ]; then
|
||||
sed -i "s/^cdn.*/cdn=${CDN/\/\//\\/\\/}/g" conf/app.conf
|
||||
cdn=${CDN/\/\//\\/\\/}
|
||||
sed -i "s/^cdn.*/cdn=$cdn/g" conf/app.conf
|
||||
fi
|
||||
|
||||
sed -i 's/^runmode.*/runmode=prod/g' conf/app.conf
|
||||
|
Loading…
Reference in New Issue
Block a user