mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2024-09-21 00:13:18 +00:00
fix cdn host replacement
This commit is contained in:
parent
ef6679acb0
commit
d8221ca8f5
@ -39,9 +39,9 @@ fi
|
|||||||
|
|
||||||
cd $APP/dist
|
cd $APP/dist
|
||||||
if [ ! -z "$STATIC_CDN_HOST" ]; then
|
if [ ! -z "$STATIC_CDN_HOST" ]; then
|
||||||
find . -name index.html -exec sed -i "s/__STATIC_CDN_HOST__/\/\/$STATIC_CDN_HOST/g" {} \;
|
find . -name "*.*" -type f -exec sed -i "s/__STATIC_CDN_HOST__/\/$STATIC_CDN_HOST/g" {} \;
|
||||||
else
|
else
|
||||||
find . -name index.html -exec sed -i "s/__STATIC_CDN_HOST__//g" {} \;
|
find . -name "*.*" -type f -exec sed -i "s/__STATIC_CDN_HOST__\///g" {} \;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd $APP
|
cd $APP
|
||||||
|
Loading…
Reference in New Issue
Block a user