Ignore:
Timestamp:
10/15/13 06:42:00 (10 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2
Children:
0843d04d, 71c5890
Parents:
39071027
Message:

Allow running "lpreserver replicate list" as a user

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-sh/lpreserver/lpreserver

    rde39bc3b r9558561  
    493493    status) listStatus 
    494494         ;; 
    495  replicate) require_root 
    496             shift 
     495 replicate) shift 
    497496            case ${1} in 
    498                 add) add_rep_task "$2" "$3" "$4" "$5" "$6" "$7" ;; 
    499                 init) init_rep_task "$2" ;; 
     497                add) require_root ; add_rep_task "$2" "$3" "$4" "$5" "$6" "$7" ;; 
     498                init) require_root ; init_rep_task "$2" ;; 
    500499                list) list_rep_task ;; 
    501                 remove) cat ${REPCONF} | grep -q "^${2}:"  
     500                remove) require_root 
     501                        cat ${REPCONF} | grep -q "^${2}:"  
    502502                        if [ $? -eq 0 ] ; then 
    503503                           rem_rep_task "$2" 
Note: See TracChangeset for help on using the changeset viewer.