Changeset 35
- Timestamp:
- 03/28/2006 22:06:43 (6 years ago)
- File:
-
- 1 edited
-
confman/confman (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
confman/confman
r34 r35 567 567 568 568 function chowner { 569 local recursive item OPTIND 570 while getopts "R" opt ; do 571 case $opt in 572 R) 573 recursive=1 574 shift 575 ;; 576 *) 577 print_help 1 578 ;; 579 esac 580 done 569 581 local owner=$1 570 582 local file=$2 571 583 conf_set_prop $file owner $owner 584 if [ ! -z $recursive ] && [ -d $file ] ; then 585 for item in $file/* ; do 586 chowner -R $owner $item 587 done 588 fi 572 589 } 573 590 574 591 function chgroup { 592 local recursive item OPTIND 593 while getopts "R" opt ; do 594 case $opt in 595 R) 596 recursive=1 597 shift 598 ;; 599 *) 600 print_help 1 601 ;; 602 esac 603 done 575 604 local group=$1 576 605 local file=$2 577 606 conf_set_prop $file group $group 607 if [ ! -z $recursive ] && [ -d $file ] ; then 608 for item in $file/* ; do 609 chgroup -R $group $item 610 done 611 fi 578 612 } 579 613 580 614 function chmode { 615 local recursive item OPTIND 616 while getopts "R" opt ; do 617 case $opt in 618 R) 619 recursive=1 620 shift 621 ;; 622 *) 623 print_help 1 624 ;; 625 esac 626 done 581 627 local mode=$1 582 628 local file=$2 583 629 conf_set_prop $file mode $mode 630 if [ ! -z $recursive ] && [ -d $file ] ; then 631 for item in $file/* ; do 632 chmode -R $mode $item 633 done 634 fi 584 635 } 585 636
Note: See TracChangeset
for help on using the changeset viewer.
