From 97123e25ecf1723de090998669aabda60f83203d Mon Sep 17 00:00:00 2001 From: David Rotermund Date: Tue, 16 Jul 2024 18:47:25 +0200 Subject: [PATCH] Create delete_user.sh --- check_users/delete_user.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 check_users/delete_user.sh diff --git a/check_users/delete_user.sh b/check_users/delete_user.sh new file mode 100644 index 0000000..a686156 --- /dev/null +++ b/check_users/delete_user.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +if [ -z "$1" ]; then + echo "Error: Email address not provided" + echo "Usage: $0 " + exit 1 +fi + +docker exec overleafserver /bin/bash -ce "cd /overleaf/services/web && node modules/server-ce-scripts/scripts/delete-user --email=$1"