summaryrefslogtreecommitdiff
path: root/src/helpers
diff options
context:
space:
mode:
authorerkin <me@erkin.party>2023-06-09 17:19:00 +0300
committererkin <me@erkin.party>2023-06-09 17:19:00 +0300
commitfbcb22c1850c8371dffc2cf9dbda0fe83031df10 (patch)
treef8c60a155a3e1de42cee1968961a7d5254026bd9 /src/helpers
parent8efd9aefd136c53649221d5d903dd2d8c05e7111 (diff)
downloadvyos-1x-fbcb22c1850c8371dffc2cf9dbda0fe83031df10.tar.gz
vyos-1x-fbcb22c1850c8371dffc2cf9dbda0fe83031df10.zip
T3472: Print warning when commit-confirm is run as regular user
Diffstat (limited to 'src/helpers')
-rwxr-xr-xsrc/helpers/commit-confirm-notify.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/helpers/commit-confirm-notify.py b/src/helpers/commit-confirm-notify.py
index eb7859ffa..8d7626c78 100755
--- a/src/helpers/commit-confirm-notify.py
+++ b/src/helpers/commit-confirm-notify.py
@@ -17,6 +17,7 @@ def notify(interval):
if __name__ == "__main__":
# Must be run as root to call wall(1) without a banner.
if len(sys.argv) != 2 or os.getuid() != 0:
+ print('This script requires superuser privileges.', file=sys.stderr)
exit(1)
minutes = int(sys.argv[1])
# Drop the argument from the list so that the notification