From 434cb22405c0c24a1b779e0e1e72e96200b7fe1e Mon Sep 17 00:00:00 2001 From: oxaliq Date: Mon, 22 Apr 2024 16:15:21 -0400 Subject: [PATCH] add delete script --- delete.sh | 6 ++++++ install.sh | 8 ++++++++ 2 files changed, 14 insertions(+) create mode 100644 delete.sh diff --git a/delete.sh b/delete.sh new file mode 100644 index 0000000..1e84a94 --- /dev/null +++ b/delete.sh @@ -0,0 +1,6 @@ +#!/bin/sh -e +chatlog=/var/log/bunkchat/chat.log + +chattr -a $chatlog +echo > $chatlog +chattr +a $chatlog diff --git a/install.sh b/install.sh index 046586a..04a2535 100755 --- a/install.sh +++ b/install.sh @@ -1,5 +1,13 @@ #!/bin/sh -e +# TODO +# check for tmux and cowsay + +# if not prompt and exit # pull in bunkchat # run bunkchat install script +# install buckdeck in /usr/local/bin + +# prompt user to install delete.sh in /root/crontab-scripts/delete-bunkchat.sh +# prompt with crontab config