Create delete_user.sh

This commit is contained in:
David Rotermund 2024-07-16 18:47:25 +02:00 committed by GitHub
parent 4041ac5669
commit 97123e25ec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,9 @@
#!/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"