mirror of
https://github.com/zulip/zulip.git
synced 2025-10-27 18:13:58 +00:00
scripts: Clarify names of running-as-root assertions.
This should make it more obvious that these functions will exit the script if the check fails.
This commit is contained in:
@@ -11,9 +11,9 @@ os.environ["PYTHONUNBUFFERED"] = "y"
|
||||
|
||||
sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..'))
|
||||
from scripts.lib.zulip_tools import DEPLOYMENTS_DIR, FAIL, WARNING, ENDC, \
|
||||
su_to_zulip, get_deployment_lock, release_deployment_lock, script_should_be_root
|
||||
su_to_zulip, get_deployment_lock, release_deployment_lock, assert_running_as_root
|
||||
|
||||
script_should_be_root(strip_lib_from_paths=True)
|
||||
assert_running_as_root(strip_lib_from_paths=True)
|
||||
|
||||
logging.Formatter.converter = time.gmtime
|
||||
logging.basicConfig(format="%(asctime)s upgrade-zulip: %(message)s",
|
||||
|
||||
Reference in New Issue
Block a user