mirror of https://github.com/zulip/zulip.git
upgrade-zulip-from-git: Fix rerun script and script description.
This commit is contained in:
parent
5a77a4d122
commit
c77c2f084c
|
@ -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, \
|
from scripts.lib.zulip_tools import DEPLOYMENTS_DIR, FAIL, WARNING, ENDC, make_deploy_path, \
|
||||||
get_deployment_lock, release_deployment_lock, su_to_zulip
|
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)
|
level=logging.INFO)
|
||||||
|
|
||||||
if len(sys.argv) != 2:
|
if len(sys.argv) != 2:
|
||||||
print(FAIL + "Usage: update-deployment refname" + ENDC)
|
print(FAIL + "Usage: upgrade-zulip-from-git refname" + ENDC)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
refname = sys.argv[1]
|
refname = sys.argv[1]
|
||||||
|
@ -37,7 +37,7 @@ subprocess.check_call(["mkdir", '-p',
|
||||||
DEPLOYMENTS_DIR,
|
DEPLOYMENTS_DIR,
|
||||||
'/home/zulip/logs'])
|
'/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)
|
get_deployment_lock(error_rerun_script)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue