Пример #1
0
def update_menu():
	menu = ['1. Update via Local ISO', '2. Update via %s' % updateURL, '\n     0. Back']

	available = build_avaialbe(menu)
	loop = True
	while loop:
		show_menu(menu)
		choice = get_choice(available)
		if choice == '1':
			ds.updateMobilityISO()
			ds.eContinue()
		elif choice == '2':
			ds.updateMobilityFTP()
			ds.eContinue()
		elif choice == '0':
			loop = False
			return
Пример #2
0
def update_menu():
    menu = [
        '1. Update via Local ISO',
        '2. Update via %s' % updateURL, '\n     0. Back'
    ]

    available = build_avaialbe(menu)
    loop = True
    while loop:
        show_menu(menu)
        choice = get_choice(available)
        if choice == '1':
            ds.updateMobilityISO()
            ds.eContinue()
        elif choice == '2':
            ds.updateMobilityFTP()
            ds.eContinue()
        elif choice == '0':
            loop = False
            return
Пример #3
0
# Run nightly maintenance
if args.check:
	print ds.checkNightlyMaintenance(config_files, mobilityConfig)['output']
	print; ds.eContinue()
	sys.exit(0)

# Show sync status
if args.status:
	ds.showStatus(dbConfig)
	print; ds.eContinue()
	sys.exit(0)

# Update mobility URL
if args.update:
	ds.updateMobilityFTP()
	ds.eContinue()
	sys.exit(0)

# Vacuum db
if args.vacuum:
	ds.rcDS('stop')
	ds.vacuumDB(dbConfig)
	if args.index:
		ds.indexDB(dbConfig)
	ds.rcDS('start')
	ds.eContinue()
	sys.exit(0)

# Index db
if args.index:
Пример #4
0
    print
    ds.eContinue()
    sys.exit(0)

# Show sync status
if args.status:
    logger.info("Running switch: status")
    ds.showStatus()
    print
    ds.eContinue()
    sys.exit(0)

# Update mobility URL
if args.update:
    logger.info("Running switch: update")
    ds.updateMobilityFTP()
    ds.eContinue()
    sys.exit(0)

# Vacuum db
if args.vacuum:
    logger.info("Running switch: vacuum")
    ds.rcDS('stop')
    ds.vacuumDB()
    if args.index:
        logger.info("Running switch: index")
        ds.indexDB()
    ds.rcDS('start')
    ds.eContinue()
    sys.exit(0)