Commit 799a7d12 authored by Jondy Zhao's avatar Jondy Zhao

Change psutil version to 0.6.2

Add home path when adding an account
parent bffefc84
Metadata-Version: 1.0
Name: psutil
Version: 0.6.01
Version: 0.6.2
Summary: A process and system utilities module for Python
Home-page: http://code.google.com/p/psutil/
Author: Giampaolo Rodola
Author-email: g.rodola <at> gmail <dot> com
License: License :: OSI Approved :: BSD License
Download-URL: http://psutil.googlecode.com/files/psutil-0.6.01.tar.gz
Download-URL: http://psutil.googlecode.com/files/psutil-0.6.2.tar.gz
Description: ===========
Quick links
===========
......
......@@ -14,7 +14,7 @@ Python.
from __future__ import division
__version__ = "0.6.01"
__version__ = "0.6.2"
version_info = tuple([int(num) for num in __version__.split('.')])
__all__ = [
......
......@@ -67,6 +67,7 @@ net user "${USER_NAME}" "${USER_NAME}" /${ACTION}
if (( $? == 0 )) ; then
if [[ $ACTION == "ADD" ]] ; then
mkpasswd | grep "^${USER_NAME}:" >> /etc/passwd
[[ ! "$USER_HOME" == "" ]] && [[ ! -f $USER_HOME ]] && mkdir -p $USER_HOME && chown $USER_NAME $USER_HOME
elif [[ $ACTION == "DELETE" ]] ; then
sed -i -e "s/^${USER_NAME}:.*//g" /etc/passwd
fi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment