mirror of
https://gitee.com/iresty/apisix.git
synced 2024-12-15 17:31:45 +08:00
10 lines
178 B
Bash
Executable File
10 lines
178 B
Bash
Executable File
#!/bin/sh
|
|
|
|
target_file=$1
|
|
|
|
# 这里的-f参数判断$target_file是否存在
|
|
if [ ! -f "$target_file" ]; then
|
|
cp ./conf/config.yaml $target_file
|
|
chmod 644 $target_file
|
|
fi
|