Changeset 126
- Timestamp:
- Oct 7, 2007, 6:32:15 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-remctl-auto/sipb-xen-remctl-auto/files/usr/sbin/remctl-update.sh
r121 r126 13 13 update_machine() 14 14 { 15 machine= $115 machine="$1" 16 16 sed "s/#MACHINENAME#/$machine/g" "$TEMPLATE" | \ 17 17 sed "s,#BINDIR#,$BINDIR,g" >| "$MACHINETMP" … … 25 25 update_moiragroup() 26 26 { 27 group= $127 group="$1" 28 28 # Should perhaps replace with LDAP, but fine for now. 29 29 … … 31 31 # all bits and delete the moira-acl files whenever there's an AFS 32 32 # outage. 33 pts membership -nameorid "system:$group" -noauth | tail -n+2 | \ 34 sed 's/\./\//; s/^ //; s/$/@ATHENA.MIT.EDU/g' >| "$MOIRATMP" 33 pts membership system:"$group" -noauth | tail -n+2 | \ 34 sed 's/\./\//' | \ 35 sed 's/^ //' | \ 36 sed 's/$/@ATHENA.MIT.EDU/g' >| "$MOIRATMP" 35 37 if test -s "$MOIRATMP"; then 36 38 if ! cmp -s "$MOIRADIR/$group" "$MOIRATMP"; then … … 73 75 grep -R moira "$ACLDIR/" /etc/remctl/acl/ | perl -pe 's/.*moira-acl\/(.*)/$1/g' >| "$AUTOMOIRALIST" 74 76 ;; 77 register) 78 if [ "$2" == "Domain-0" ]; then 79 echo "No, you can't control Domain 0" 80 exit 1 81 fi 82 if [ -e /etc/xen/"$2" ]; then 83 echo "Machine already exists outside database" 84 exit 1 85 fi 86 if [ -e "$ACLDIR"/"$2" ]; then 87 echo "Machine already registered" 88 exit 1 89 fi 90 echo "include /etc/remctl/acl/web" > "$ACLDIR/$2" 91 "$0" web 92 ;; 93 web) 94 "$0" auto_machine_list 95 "$0" all_machines 96 ;; 75 97 all) 76 98 "$0" auto_machine_list
Note: See TracChangeset
for help on using the changeset viewer.