Project

General

Profile

« Previous | Next » 

Revision 459cdb00

Added by Andreas Kohlbecker about 12 years ago

fixing problem with finding user and groups & possible fix for #2492 (LINUX: insufficient permissions for user cdm to create logfiles)

View differences:

src/main/installer/linux/postrm
22 22
# functions
23 23
#
24 24
userExist(){
25
    grep $1 /etc/passwd > /dev/null
25
    grep "$1:" /etc/passwd > /dev/null
26 26
    [ $? -eq 0 ] && return $TRUE || return $FALSE
27 27
}
28 28

  
29 29
groupExist(){
30
    grep $1 /etc/group > /dev/null
30
    grep "$1:" /etc/group > /dev/null
31 31
    [ $? -eq 0 ] && return $TRUE || return $FALSE
32 32
}
33 33

  

Also available in: Unified diff