mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-10-22 03:47:26 +08:00
修复Dockerfile启动脚本
This commit is contained in:
8
start.sh
8
start.sh
@@ -28,19 +28,19 @@ if [ ! -z $MYSQL_PASSWORD ] ; then
|
||||
fi
|
||||
|
||||
if [ ! -z $HTTP_PORT ] ; then
|
||||
sed -i 's/^httpport.*/httpport='$HTTP_PORT'/g' conf/app.conf
|
||||
sed -i "s/^httpport.*/httpport=${HTTP_PORT}/g" conf/app.conf
|
||||
fi
|
||||
|
||||
if [ ! -z $CDNJS ]; then
|
||||
sed -i 's/^cdnjs.*/cdnjs='$CDNJS'/g' conf/app.conf
|
||||
sed -i "s/^cdnjs.*/ccdnjs=${CDNJS/\/\//\\/\\/}/g" conf/app.conf
|
||||
fi
|
||||
|
||||
if [ ! -z $CDNCSS ]; then
|
||||
sed -i 's/^cdncss.*/cdncss='$CDNCSS'/g' conf/app.conf
|
||||
sed -i "s/^cdncss.*/cdncss=${CDNCSS/\/\//\\/\\/}/g" conf/app.conf
|
||||
fi
|
||||
|
||||
if [ ! -z $CDN ]; then
|
||||
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
|
||||
|
Reference in New Issue
Block a user