QuartzMap/installer/delete_ftp_user.sh

7 lines
140 B
Bash
Raw Normal View History

2024-03-16 23:03:30 +00:00
#!/bin/bash -e
FTP_USERNAME="${1}"
if [ $(groups "${FTP_USERNAME}" | grep -m 1 -c 'qatusers') -gt 0 ]; then
userdel -r ${FTP_USERNAME}
fi