Changeset 2820
- Timestamp:
- Nov 10, 2016, 2:43:21 PM (4 years ago)
- 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 16 16 # 17 17 case "${prev}" in 18 rundebmirror|getmirrorarchitecture|setmirrorarchitecture|getmirrororig|setmirrororig|getchecksumvalidation|setchecksumvalidation)18 update|rundebmirror|getmirrorarchitecture|setmirrorarchitecture|getmirrororig|setmirrororig|getchecksumvalidation|setchecksumvalidation) 19 19 local running=$( ls /etc/lliurex-mirror/conf/ | cut -d "." -f1 | tr "\n" " " ) 20 20 COMPREPLY=( $(compgen -W "${running}" -- ${cur}) ) -
lliurex-mirror/trunk/fuentes/lliurex-mirror-cli/usr/sbin/lliurex-mirror
r2818 r2820 13 13 self.ip = host if host != None else "localhost" 14 14 self.credentials = credentials 15 self.client = x.ServerProxy("https://"+self.ip+":9779" )15 self.client = x.ServerProxy("https://"+self.ip+":9779",allow_none=True) 16 16 17 17 def setCname(self): … … 98 98 with indent(4): 99 99 puts("setcname") 100 puts("update DISTRO") 100 101 puts("rundebmirror DISTRO") 101 102 puts("isalive") … … 184 185 if action == "setcname": 185 186 lliurexmirror.setCname() 186 elif action == "rundebmirror" :187 elif action == "rundebmirror" or action =="update": 187 188 lliurexmirror.runDebmirror(args.get(0)) 188 189 elif action == "isalive":
Note: See TracChangeset
for help on using the changeset viewer.