isn't scripting fun?

This commit is contained in:
Mark 2022-04-09 08:25:46 +01:00
parent d8c0f47a05
commit 62008ab146
1 changed files with 7 additions and 7 deletions

View File

@ -20,7 +20,7 @@ ACME_HOME='/etc/acme'
ACME_SCRIPT_URL='https://raw.githubusercontent.com/acmesh-official/acme.sh/master/acme.sh'
# Temporary script location.
ACME_SCRIPT_TMP='/etc/acme/acme.sh'
ACME_SCRIPT_TMP='/tmp'
install() {
# Add user.
@ -46,19 +46,19 @@ chmod -cR u+s,g+s,o+s ${ACME_HOME}
apt install sudo socat curl coreutils
# Download & install.
curl -o "${ACME_SCRIPT_TMP}" "${ACME_SCRIPT_URL}"
chmod +x ${ACME_SCRIPT_TMP}
curl -o "${ACME_SCRIPT_TMP}/acme.sh" "${ACME_SCRIPT_URL}"
chmod +x ${ACME_SCRIPT_TMP}/acme.sh
cat <<todo
This script cannot do the following, you must copy, paste and run the
following manually...
This script cannot do the following, you must copy, paste and run...
sudo -s -u ${ACME_USER}
cd ${ACME_HOME}; ${ACME_SCRIPT_TMP} --home ${ACME_HOME} --install
cd ${ACME_SCRIPT_TMP}
./acme.sh --home ${ACME_HOME} --install
exit
todo