#!/bin/bash
user=$(ls /home/goldendb/)
for k in ${user};do
pkill -9 -u ${k}
umount -l /home/goldendb/${k}/backup_root/
umount -l /home/goldendb/${k}/seqdata/
umount -l /home/goldendb/${k}/.metadata_backup_root/
umount -l /home/goldendb/${k}/seq_backup_root
userdel -rf ${k}
done
cd /home
rm -rf goldendb
groupdel goldendb
user1=$(ls /home |egrep zx)
for k1 in ${user1};do
pkill -9 -u ${k1}
umount -l /home/${k1}/backup_root/
umount -l /home/${k1}/seqdata/
umount -l /home/${k1}/.metadata_backup_root/
userdel -rf ${k1}
rm -rf ${k1}
done