upgrade-zulip-from-git: Fix rerun script and script description.

This commit is contained in:
rht 2017-10-18 04:38:22 +02:00
parent 5a77a4d122
commit c77c2f084c
No known key found for this signature in database
GPG Key ID: B718346BD289EB8C
1 changed files with 3 additions and 3 deletions

View File

@ -24,11 +24,11 @@ sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
from scripts.lib.zulip_tools import DEPLOYMENTS_DIR, FAIL, WARNING, ENDC, make_deploy_path, \
get_deployment_lock, release_deployment_lock, su_to_zulip
logging.basicConfig(format="%(asctime)s update-deployment: %(message)s",
logging.basicConfig(format="%(asctime)s upgrade-zulip-from-git: %(message)s",
level=logging.INFO)
if len(sys.argv) != 2:
print(FAIL + "Usage: update-deployment refname" + ENDC)
print(FAIL + "Usage: upgrade-zulip-from-git refname" + ENDC)
sys.exit(1)
refname = sys.argv[1]
@ -37,7 +37,7 @@ subprocess.check_call(["mkdir", '-p',
DEPLOYMENTS_DIR,
'/home/zulip/logs'])
error_rerun_script = "%s/current/tools/update-deployment %s" % (DEPLOYMENTS_DIR, refname)
error_rerun_script = "%s/current/scripts/upgrade-zulip-from-git %s" % (DEPLOYMENTS_DIR, refname)
get_deployment_lock(error_rerun_script)
try: