代码拉取完成,页面将自动刷新
#!/bin/bash
REPO_DIR=$(dirname $0)
wget https://raw.githubusercontent.com/Neilpang/acme.sh/master/acme.sh -O ${REPO_DIR}/acme.sh
wget https://github.com/gileshuang/go-simple-httpd/releases/download/v0.1/go-simple-httpd.x86_64.elf -O ${REPO_DIR}/go-simple-httpd.elf
mkdir -p /etc/letsautoencrypt
mkdir -p /usr/lib/letsautoencrypt
mkdir -p usr/share/licenses/letsautoencrypt
install -Dm644 ${REPO_DIR}/env.conf /etc/letsautoencrypt/env.conf
install -Dm644 ${REPO_DIR}/env.conf /usr/lib/letsautoencrypt/env.conf
install -Dm644 ${REPO_DIR}/https-acme.conf /etc/letsautoencrypt/https-acme.conf.example
install -Dm644 ${REPO_DIR}/https-acme.conf /usr/lib/letsautoencrypt/https-acme.conf
install -Dm755 ${REPO_DIR}/acme.sh /usr/lib/letsautoencrypt/acme.sh
install -Dm755 ${REPO_DIR}/letsautoencrypt.sh /usr/lib/letsautoencrypt/letsautoencrypt.sh
install -Dm755 ${REPO_DIR}/go-simple-httpd.elf /usr/lib/letsautoencrypt/go-simple-httpd.elf
install -Dm644 ${REPO_DIR}/letsautoencrypt.service /usr/lib/systemd/system/letsautoencrypt.service
install -Dm644 ${REPO_DIR}/letsautoencrypt.timer /usr/lib/systemd/system/letsautoencrypt.timer
install -Dm644 ${REPO_DIR}/LICENSE /usr/share/licenses/letsautoencrypt/LICENSE
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。