mirror of
https://github.com/woodchen-ink/random-api-go.git
synced 2025-07-18 05:42:01 +08:00
10 lines
191 B
Bash
10 lines
191 B
Bash
#!/bin/sh
|
|
|
|
# 如果挂载的 public 目录为空,则从临时位置复制文件
|
|
if [ ! "$(ls -A /root/public)" ]; then
|
|
cp -r /tmp/public/* /root/public/
|
|
fi
|
|
|
|
# 启动应用
|
|
./random-api
|