apisix/utils/install_nginx_conf.sh
2019-06-03 19:06:04 -04:00

9 lines
154 B
Bash
Executable File

#!/bin/sh
target_file=$1
# 这里的-f参数判断$target_file是否存在
if [ ! -f "$target_file" ]; then
cp ./conf/config.yaml $target_file
fi