double auth have to be checked now

This commit is contained in:
qo-op 2020-06-13 13:37:10 +02:00
parent dfe7d2df69
commit 231caf7395
1 changed files with 5 additions and 4 deletions

View File

@ -94,10 +94,11 @@ for hashfile in /tmp/loveland_entrance/*; do
done
## CHECK FOR DOUBLE AUTH REQUEST
[[ ! -f /tmp/sms.commands ]] && exit 1
for phone_auth in $(cat /tmp/sms.auth.commands) do
$MY_PATH/sms_AUTH.sh $phone_auth
done
if [[ -f /tmp/sms.auth.commands ]]; then
for phone_auth in $(cat /tmp/sms.auth.commands) do
$MY_PATH/sms_AUTH.sh $phone_auth
done
fi
[[ -d /home/$YOU/.zen/g1sms/$PHONE ]] && [[ $(whoami) == "root" ]] && chown -R $YOU /home/$YOU/.zen/g1sms/$PHONE