From 3e46dc78cb53134cbfd215333c41becc0f025426 Mon Sep 17 00:00:00 2001 From: j Date: Thu, 19 Dec 2019 20:54:37 +0200 Subject: [PATCH] update.py should only be used as pandora user --- update.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/update.py b/update.py index 0e6c04de..6b32fc67 100755 --- a/update.py +++ b/update.py @@ -127,6 +127,9 @@ def get_branch(path=None): if __name__ == "__main__": + if os.stat(__file__).st_uid != os.getuid() or os.getuid() == 0: + print('you must run update.py as the pandora user') + sys.exit(1) base = os.path.normpath(os.path.abspath(os.path.dirname(__file__))) os.chdir(base) activate_venv(base)