Skip to content

Instantly share code, notes, and snippets.

@alpaca-tc
Created March 18, 2013 12:13
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save alpaca-tc/5186757 to your computer and use it in GitHub Desktop.
#!/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