From 437cdf04560d1ebd61ec0c769d2039cf2dfef31c Mon Sep 17 00:00:00 2001 From: Cyber Date: Thu, 25 Jul 2024 06:22:19 +0000 Subject: [PATCH] Add install instructions --- README.md | 15 ++++++++++++++- enable-expire-notifs.sh | 3 --- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 9bc0b97..fb0e671 100644 --- a/README.md +++ b/README.md @@ -1 +1,14 @@ -Bringing back container expiration notifs since 2024 \ No newline at end of file +Bringing back container expiration notifs since 2024 + +# Installation + +Manual: +``` +git clone https://git.ssh.surf/Cyber/container-expire-notifs /var/tools/container-expire-notifs +/var/tools/enable-expire-notifs.sh +``` + +Automated: +``` +/enable-expire-notifs +``` \ No newline at end of file diff --git a/enable-expire-notifs.sh b/enable-expire-notifs.sh index 7e509ea..bf16d49 100755 --- a/enable-expire-notifs.sh +++ b/enable-expire-notifs.sh @@ -13,9 +13,6 @@ if [[ hello -ne 200 ]]; then exit 1 fi -mkdir /var/tools/container-expire-notifs -cp /root/container-expire-notifs/notify.sh /var/tools/container-expire-notifs/notify.sh - echo $API_KEY > /var/tools/container-expire-notifs/.api-key [ ! which at ] && sudo apt install at