Browse Source

Remove relative paths from scripts

theo 9 months ago
parent
commit
48844706e7
2 changed files with 3 additions and 3 deletions
  1. 2 2
      bin/createperson
  2. 1 1
      bin/removeperson

+ 2 - 2
bin/createperson

@@ -48,9 +48,9 @@ userPassword: $pw"
 
 
 echo "$user" | ldapadd $LDAPOPTS
 echo "$user" | ldapadd $LDAPOPTS
 
 
-[ -n "$posix" ] && echo posix &&  ./person2posix $uid
+[ -n "$posix" ] && echo posix &&  person2posix $uid
 
 
-[ -n "$grouplist" ] && echo groups && ./addtogroups $uid $grouplist
+[ -n "$grouplist" ] && echo groups && addtogroups $uid $grouplist
 
 
 echo "User $uid created, here is their password :"
 echo "User $uid created, here is their password :"
 echo "$clearpw"
 echo "$clearpw"

+ 1 - 1
bin/removeperson

@@ -28,7 +28,7 @@ esac
 if [ $confirmed = "true" ]; then
 if [ $confirmed = "true" ]; then
 	if user_is_posix $uid; then 
 	if user_is_posix $uid; then 
 		ldapdelete $LDAPOPTS cn=$uid,$GROUPSDN
 		ldapdelete $LDAPOPTS cn=$uid,$GROUPSDN
-		./removefromgroups $uid $(get_posixGroups $uid)
+		removefromgroups $uid $(get_posixGroups $uid)
 	fi
 	fi
 	ldapdelete $LDAPOPTS uid=$uid,$PEOPLEDN
 	ldapdelete $LDAPOPTS uid=$uid,$PEOPLEDN
 fi
 fi