def create_aup(options):
    if not options.dry_run:
        shutil.copyfile(VOMSDefaults.vo_aup_template,aup_path(options.vo))
        if os.geteuid() == 0:
            (owner_id, group_id) = config_owner_ids(options)
            change_owner_and_set_perms(aup_path(options.vo),
                                       owner_id,
                                       group_id,
                                       0644)
def setup_admin_defaults(options):
    
    if not options.aup_url:
        options.aup_url = "file:%s" % aup_path(options.vo)
    
    if not options.uri:
        options.uri = "%s:%d" % (options.hostname, options.core_port)
def setup_admin_defaults(options):

    if not options.aup_url:
        options.aup_url = "file:%s" % aup_path(options.vo)