From 0043af085b036192f6edb67b402afa58b108dca8 Mon Sep 17 00:00:00 2001 From: Ronnie McGrog Date: Mon, 12 Mar 2018 01:29:28 +0300 Subject: [PATCH] uci mistakes fixed --- How-to-run-on-OpenWRT.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/How-to-run-on-OpenWRT.md b/How-to-run-on-OpenWRT.md index f2c22cf..0303514 100644 --- a/How-to-run-on-OpenWRT.md +++ b/How-to-run-on-OpenWRT.md @@ -45,6 +45,7 @@ mkdir ~/.https curl https://raw.githubusercontent.com/Neilpang/acme.sh/master/acme.sh > acme.sh chmod a+x "acme.sh" ./acme.sh --install +cd /root/.acme.sh DOMAIN=my.router.net ## this domain must actually point to your router ./acme.sh --issue -d $DOMAIN -w /www ``` @@ -52,8 +53,8 @@ DOMAIN=my.router.net ## this domain must actually point to your router Now if the certificate issue was successful we'll tell the web server to use our new certificate: ``` -uci set uhttpd.main.key "$(pwd)/$DOMAIN/$DOMAIN.key" -uci set uhttpd.main.cert "$(pwd)/$DOMAIN/$DOMAIN.cert" +uci set uhttpd.main.key="$(pwd)/$DOMAIN/$DOMAIN.key" +uci set uhttpd.main.cert="$(pwd)/$DOMAIN/$DOMAIN.cert" uci commit uhttpd /etc/init.d/uhttpd restart ```