Merge pull request #40 from musk-1024/main
Fix two issue for lacking the environment "SHORT_URL"
This commit is contained in:
commit
671d175e6d
|
@ -11,6 +11,11 @@ else
|
|||
echo "如需修改请在容器启动时使用 -e API_URL='https://sub.ops.ci' 传递环境变量"
|
||||
fi
|
||||
|
||||
if [ $SHORT_URL ]; then
|
||||
echo "当前短链接地址为: $SHORT_URL"
|
||||
sed -i "s#https://s.ops.ci#$SHORT_URL#g" /usr/share/nginx/html/conf/config.js
|
||||
fi
|
||||
|
||||
if [ $SITE_NAME ]; then
|
||||
sed -i "s#Subconverter Web#$SITE_NAME#g" /usr/share/nginx/html/conf/config.js
|
||||
fi
|
||||
|
|
|
@ -11,6 +11,11 @@ else
|
|||
echo "如需修改请在容器启动时使用 -e API_URL='https://sub.ops.ci' 传递环境变量"
|
||||
fi
|
||||
|
||||
if [ $SHORT_URL ]; then
|
||||
echo "当前短链接地址为: $SHORT_URL"
|
||||
sed -i "s#https://s.ops.ci#$SHORT_URL#g" /usr/share/nginx/html/conf/config.js
|
||||
fi
|
||||
|
||||
if [ $SITE_NAME ]; then
|
||||
sed -i "s#Subconverter Web#$SITE_NAME#g" /usr/share/nginx/html/conf/config.js
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue