WIP: initial draft

This commit is contained in:
root 2021-03-17 13:52:01 -04:00
parent 433c7c3f94
commit 24bbfc4add
2 changed files with 14 additions and 3 deletions

View file

@ -5,6 +5,8 @@
TODAY=`date`
HOSTNAME=`hostname`
ARGLINE="$@"
echo $ARGLINE
function debug
{
@ -70,7 +72,16 @@ function send_notification
function become
{
sudo su -
local tempfile
if test -z "$BECOME"; then
echo $BASH_SOURCE
exit
chmod 0755 $tempfile
sudo su - --command=$tempfile
rm $tempfile
exit
fi
}
function check_values