From faeb5e8ccc6dd363874e29e566f0f2b2d596bc08 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Thu, 15 Sep 2022 12:06:23 +0200 Subject: bin/up: switch to the new fshare-based up service Use the same script for up and ups. --- bin/ups | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bin/ups') diff --git a/bin/ups b/bin/ups index d38a076..6ca206f 100755 --- a/bin/ups +++ b/bin/ups @@ -16,7 +16,9 @@ try: except ImportError: have_magic = False -server = 'https://ups.khirnov.net/' +progname = os.path.basename(sys.argv[0]) +service = 'up' if progname == 'up' else 'ups' +server = 'https://%s.khirnov.net/' % service cert_path = os.path.expanduser('~/.local/var/up/cert') parser = argparse.ArgumentParser() -- cgit v1.2.3