summaryrefslogtreecommitdiff
path: root/bin/ups
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ups')
-rwxr-xr-xbin/ups4
1 files changed, 3 insertions, 1 deletions
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()