1 Star 0 Fork 4K

thinkcodee/O2OA

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
graalvm.sh 1.94 KB
一键复制 编辑 原始数据 按行查看 历史
rooo000 提交于 2022-01-18 13:08 +08:00 . restore ScriptObjectMirrorSerializer
#!/bin/bash
# Copyright (c) http://www.o2oa.net/
current_dir="$(cd "$(dirname "$0")"; pwd)"
if [ -d ${current_dir}/local/update ]
then
for D in commons configSample localSample jvm servers store config local
do
if [ ! -d ${current_dir}/$D ]
then
mkdir ${current_dir}/commons
fi
done
if [ -f ${current_dir}/local/update/o2server/version.o2 ]
then
echo 'update o2server.'
for D in commons configSample localSample jvm servers store
do
if [ -d ${current_dir}/local/update/o2server/$D ]
then
echo "update ${current_dir}/$D."
cp -Rf -p ${current_dir}/local/update/o2server/$D ${current_dir}/
fi
done
for F in console.jar index.html src.zip
do
if [ -f ${current_dir}/local/update/o2server/$F ]
then
echo "update ${current_dir}/$F."
cp -f -p ${current_dir}/local/update/o2server/$F ${current_dir}/
fi
done
for A in "start" "stop" "restart" "console" "service"
do
for B in "_windows.bat" "_linux.sh" "_macos.sh" "_arm.sh" "_mips.sh" "_raspi.sh" "_aix.sh"
do
if [ -f ${current_dir}/local/update/o2server/$A$B ]; then
echo "update ${current_dir}/$A$B."
cp -f -p ${current_dir}/local/update/o2server/$A$B ${current_dir}/
fi
done
done
echo "update ${current_dir}/version.o2."
cp ${current_dir}/local/update/o2server/version.o2 ${current_dir}/
echo "clean local/update directory."
rm -Rf ${current_dir}/local/update
echo "the update is complete, please restart the server."
exit 1
fi
fi
setsid /home/ray/Coding/Java/jvm/graalvm-java17/bin/java -Dnashorn.args=--no-deprecation-warning --add-exports jdk.scripting.nashorn/jdk.nashorn.internal.runtime=ALL-UNNAMED --add-exports jdk.scripting.nashorn/jdk.nashorn.internal.runtime.arrays=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED -javaagent:${current_dir}/console.jar -server -Djava.awt.headless=true -XX:+PrintFlagsFinal -Xms256m -Xmx1024m -Duser.timezone=GMT+08 -XX:+HeapDumpOnOutOfMemoryError -jar ${current_dir}/console.jar
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/thinkcodee/O2OA.git
git@gitee.com:thinkcodee/O2OA.git
thinkcodee
O2OA
O2OA
master

搜索帮助