overleaf/check_users/delete_user.sh

10 lines
265 B
Bash
Raw Permalink Normal View History

2024-07-16 18:47:25 +02:00
#!/bin/bash
if [ -z "$1" ]; then
echo "Error: Email address not provided"
echo "Usage: $0 <email_address>"
exit 1
fi
docker exec overleafserver /bin/bash -ce "cd /overleaf/services/web && node modules/server-ce-scripts/scripts/delete-user --email=$1"