From d128c66ff8ea33334724e0de6c15c309bc1e995c Mon Sep 17 00:00:00 2001 From: Bob Mottram <bob@freedombone.net> Date: Fri, 22 Sep 2017 18:32:30 +0100 Subject: [PATCH] Return to using admin user for the usb canary --- src/freedombone-usb-canary | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/freedombone-usb-canary b/src/freedombone-usb-canary index f641687da..6d87ef538 100755 --- a/src/freedombone-usb-canary +++ b/src/freedombone-usb-canary @@ -5,8 +5,7 @@ PROJECT_NAME=freedombone UPTIME=$(cat /proc/uptime | awk -F '.' '{print $1}') if [ $UPTIME -gt 120 ]; then ADMIN_USER=$(cat /root/${PROJECT_NAME}-completed.txt | grep 'Admin user' | awk -F ':' '{print $2}') - #MY_EMAIL_ADDRESS=${ADMIN_USER}@$(cat /etc/hostname) - MY_EMAIL_ADDRESS=root@$(cat /etc/hostname) + MY_EMAIL_ADDRESS=${ADMIN_USER}@$(cat /etc/hostname) echo "USB device connected on ${DEVPATH}" | mail -s "${PROJECT_NAME} USB canary" ${MY_EMAIL_ADDRESS} echo "${ACTION}" > /tmp/usb-canary echo "${MY_EMAIL_ADDRESS}" >> /tmp/usb-canary -- GitLab