Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 19071130 authored by Felix's avatar Felix
Browse files

Prompt for email to be deleted, instead of passing it via command line

parent 2cb2d52f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3,7 +3,8 @@ set -e

source /mnt/repo-base/scripts/base.sh

ACCOUNT=$1
echo "Enter the email address to be deleted:"
read ACCOUNT

if ! docker-compose exec -T -u www-data nextcloud php occ user:info "$ACCOUNT" | grep "$ACCOUNT" --quiet; then
    echo "Error: The account $ACCOUNT does not exist"