Skip to content

Instantly share code, notes, and snippets.

@alpaca-tc
Created Mar 18, 2013
Embed
What would you like to do?
#!/bin/sh
name=$1
if [ ! -d ${user_dir} ]
then
echo "${name}というユーザーは存在しません。"
sleep 2
exit
fi
read -p "${name}というユーザーを削除しますか?(取り消しは出来ません) y/n " yn
if [ $yn = "y" -o $yn = "Y" ]; then
/usr/sbin/userdel -r $name
rm /etc/httpd/conf.d/${name}.conf
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment