Skip to content

Commit

Permalink
Add option to specify joblist file
Browse files Browse the repository at this point in the history
  • Loading branch information
ttedeschi authored Jul 11, 2024
1 parent 627830d commit 7e42e02
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions handles.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
parser.add_argument("--cadir", help="CA directory", type=str, default="")
parser.add_argument("--proxy", help="Path to proxy file", type=str, default="")
parser.add_argument("--token", help="Path to token file", type=str, default="")
parser.add_argument("--jobsfile", help="Path to jobs database file", type=str, default="")
parser.add_argument(
"--dummy-job",
action="store_true",
Expand All @@ -28,6 +29,10 @@
with open("/root/.arc/client.conf", "a") as file1:
file1.writelines(f"cacertificatesdirectory={args.cadir} \n")

if args.jobsfile != "":
with open("/root/.arc/client.conf", "a") as file1:
file1.writelines(f"joblist={args.jobsfile} \n")

if args.proxy != "":
#os.environ["X509_USER_PROXY"] = args.proxy
with open("/root/.arc/client.conf", "a") as file1:
Expand Down

0 comments on commit 7e42e02

Please sign in to comment.