From 88547502dcc0dc603358557aee6bbef37e8fe1e8 Mon Sep 17 00:00:00 2001 From: ge Date: Mon, 24 Apr 2023 20:22:28 +0300 Subject: [PATCH] add --- issue_cert | 8 ++++++++ run_motd | 7 +++++++ 2 files changed, 15 insertions(+) create mode 100755 issue_cert create mode 100755 run_motd diff --git a/issue_cert b/issue_cert new file mode 100755 index 0000000..c90e82a --- /dev/null +++ b/issue_cert @@ -0,0 +1,8 @@ +#!/bin/sh + +if [ "$#" -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "--help" ]; then + echo Usage: "$0" DOMAIN + exit 1 +fi + +acme.sh --issue --nginx -d "$@" diff --git a/run_motd b/run_motd new file mode 100755 index 0000000..de55199 --- /dev/null +++ b/run_motd @@ -0,0 +1,7 @@ +#!/bin/sh + +hash run-parts >/dev/null 2>&1 && run-parts /etc/update-motd.d/ && exit + +for f in /etc/update-motd.d/*; do + sh "$f" +done