Lance le fixperm en triant par login

ToDo : backporter en 3.1 stable
This commit is contained in:
Alan Garcia 2013-10-21 13:12:46 +00:00
parent f40811c559
commit 61985f79f0
1 changed files with 3 additions and 3 deletions

View File

@ -33,7 +33,7 @@
# The f and d switch are used to fix a given file or directory under the user's base directory. They use the base directory to get the permissions they should use. # The f and d switch are used to fix a given file or directory under the user's base directory. They use the base directory to get the permissions they should use.
# Be sure to have correct base directory permissions before attemplting to fix use those two switch # Be sure to have correct base directory permissions before attemplting to fix use those two switch
query="SELECT uid,login FROM membres" query="SELECT uid,login FROM membres ORDER BY login"
sub_dir="" sub_dir=""
file="" file=""
@ -42,7 +42,7 @@ do
case "$optname" in case "$optname" in
"l") "l")
if [[ "$OPTARG" =~ ^[a-zA-Z0-9_]+$ ]] ; then if [[ "$OPTARG" =~ ^[a-zA-Z0-9_]+$ ]] ; then
query="SELECT uid,login FROM membres WHERE login LIKE '$OPTARG'" query="SELECT uid,login FROM membres WHERE login LIKE '$OPTARG' ORDER BY login"
else else
echo "Bad login provided" echo "Bad login provided"
exit exit
@ -50,7 +50,7 @@ do
;; ;;
"u") "u")
if [[ "$OPTARG" =~ ^[0-9]+$ ]] ; then if [[ "$OPTARG" =~ ^[0-9]+$ ]] ; then
query="SELECT uid,login FROM membres WHERE uid LIKE '$OPTARG'" query="SELECT uid,login FROM membres WHERE uid LIKE '$OPTARG' ORDER BY login"
else else
echo "Bad uid provided" echo "Bad uid provided"
exit exit