Merge branch 'master' of https://github.com/silvernode/jitty-scripts
This commit is contained in:
commit
6af4438ee0
@ -46,7 +46,7 @@ Remove_user(){
|
|||||||
if [ -d /home/${duser} ];then
|
if [ -d /home/${duser} ];then
|
||||||
rm -R /home/${duser}
|
rm -R /home/${duser}
|
||||||
else
|
else
|
||||||
echo "User creation failed"
|
echo "User deletion failed"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
main(){
|
main(){
|
||||||
@ -70,4 +70,8 @@ main(){
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
Create_user
|
case "$1" in
|
||||||
|
add ) Create_user;;
|
||||||
|
remove ) Remove_user;;
|
||||||
|
* ) echo "Usage: mkusr [add | remove]";;
|
||||||
|
esac
|
||||||
|
Loading…
x
Reference in New Issue
Block a user