11 lines
213 B
Bash
11 lines
213 B
Bash
declare path="$1"
|
|
|
|
if [[ -f "${path}/acme.sh" ]];then
|
|
echo "该路径文件已经存在"
|
|
fi
|
|
|
|
cat > "${path}/acme.sh" << EOF
|
|
#!/bin/bash
|
|
${HOME}/.acme.sh/acme.sh --upgrade
|
|
${HOME}/.acme.sh/acme.sh --renew-all
|
|
EOF |