apisix/utils/install_yaml_conf.sh

10 lines
178 B
Bash
Raw Normal View History

2019-06-04 06:46:17 +08:00
#!/bin/sh
target_file=$1
# 这里的-f参数判断$target_file是否存在
if [ ! -f "$target_file" ]; then
cp ./conf/config.yaml $target_file
chmod 644 $target_file
2019-06-04 06:46:17 +08:00
fi