Changeset 2820 for lliurex-mirror


Ignore:
Timestamp:
Nov 10, 2016, 2:43:21 PM (3 years ago)
Author:
hectorgh
Message:

adding update command support

Location:
lliurex-mirror/trunk/fuentes/lliurex-mirror-cli
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lliurex-mirror/trunk/fuentes/lliurex-mirror-cli/etc/bash_completion.d/lliurex-mirror

    r2137 r2820  
    1616            #
    1717            case "${prev}" in
    18                 rundebmirror|getmirrorarchitecture|setmirrorarchitecture|getmirrororig|setmirrororig|getchecksumvalidation|setchecksumvalidation)
     18                update|rundebmirror|getmirrorarchitecture|setmirrorarchitecture|getmirrororig|setmirrororig|getchecksumvalidation|setchecksumvalidation)
    1919                    local running=$( ls /etc/lliurex-mirror/conf/ | cut -d "." -f1 | tr "\n" " " )
    2020                    COMPREPLY=( $(compgen -W "${running}" -- ${cur}) )
  • lliurex-mirror/trunk/fuentes/lliurex-mirror-cli/usr/sbin/lliurex-mirror

    r2818 r2820  
    1313                self.ip = host if host != None else "localhost"
    1414                self.credentials = credentials
    15                 self.client = x.ServerProxy("https://"+self.ip+":9779")
     15                self.client = x.ServerProxy("https://"+self.ip+":9779",allow_none=True)
    1616
    1717        def setCname(self):
     
    9898                with indent(4):
    9999                        puts("setcname")
     100                        puts("update DISTRO")
    100101                        puts("rundebmirror DISTRO")
    101102                        puts("isalive")
     
    184185        if action == "setcname":
    185186                lliurexmirror.setCname()
    186         elif action == "rundebmirror":
     187        elif action == "rundebmirror" or action =="update":
    187188                lliurexmirror.runDebmirror(args.get(0))
    188189        elif action == "isalive":
Note: See TracChangeset for help on using the changeset viewer.