mirror of
https://github.com/grahampugh/macadmin-scripts.git
synced 2025-12-17 17:56:33 +00:00
commit
697639f164
@ -459,10 +459,6 @@ def find_installer_app(mountpoint):
|
|||||||
|
|
||||||
def main():
|
def main():
|
||||||
'''Do the main thing here'''
|
'''Do the main thing here'''
|
||||||
if os.getuid() != 0:
|
|
||||||
sys.exit('This command requires root (to install packages), so please '
|
|
||||||
'run again with sudo or as root.')
|
|
||||||
|
|
||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser()
|
||||||
parser.add_argument('--seedprogram', default='',
|
parser.add_argument('--seedprogram', default='',
|
||||||
help='Which Seed Program catalog to use. Valid values '
|
help='Which Seed Program catalog to use. Valid values '
|
||||||
@ -488,6 +484,10 @@ def main():
|
|||||||
help='Ignore any previously cached files.')
|
help='Ignore any previously cached files.')
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
|
if os.getuid() != 0:
|
||||||
|
sys.exit('This command requires root (to install packages), so please '
|
||||||
|
'run again with sudo or as root.')
|
||||||
|
|
||||||
if args.catalogurl:
|
if args.catalogurl:
|
||||||
su_catalog_url = args.catalogurl
|
su_catalog_url = args.catalogurl
|
||||||
elif args.seedprogram:
|
elif args.seedprogram:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user