linuxtool/Config/Automation/acme.sh

11 lines
213 B
Bash
Raw Normal View History

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