代码拉取完成,页面将自动刷新
同步操作将从 Rukiy/alpine-openjdk11 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#!/bin/sh
set -e
# In case the user wants only to use java with options
if [ $# -gt 0 ]
then
exec java $@
exit 0
fi
# Behavior when using the /app folder
#
# In the setenv.sh file you may define the following environment
# variables
#
# JAVA_OPTS : a string containing the list of java options to
# pass to the java command.
# eg. JAVA_OPTS="-Xmx1g -Dfile.encoding=utf8"
# APP_ARGS
SETENV_FILE=/app/config/Environment.sh
if [ -r $SETENV_FILE ]
then
source $SETENV_FILE
fi
TMP_JARS_LIST=/tmp/jars_list
find /app -maxdepth 1 -regex '.*.[jw]ar$' > $TMP_JARS_LIST
nb_jars=$(cat $TMP_JARS_LIST | wc -l)
if [ $nb_jars -gt 1 ]
then
echo 'ERROR: You may only have one jar in the /app folder'
echo '==================================================='
cat $TMP_JARS_LIST
exit 1
elif [ $nb_jars -eq 0 ]
then
echo 'ERROR: There should be one and only one jar in the /app folder'
echo '=============================================================='
exit 1
else
CMD="java $JAVA_OPTS -jar $(cat $TMP_JARS_LIST) $APP_ARGS"
echo "Launching the following command:"
echo " |"
echo ' `-> '"$CMD"
echo
exec $CMD
fi
exit 0
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。