This commit is contained in:
2025-12-16 17:21:45 +01:00
parent 992278fd27
commit 6faae6d0ca

View File

@@ -26,7 +26,8 @@ API_URL="https://itschool.pbcv.dev/api/report.php"
# ============================ # ============================
# Scriptul trebuie rulat ca root (cron, /opt, system info) # Scriptul trebuie rulat ca root (cron, /opt, system info)
if [[ $EUID -ne 0 ]]; then # $EUID global variable
if [[ $EUID != 0 ]]; then
echo "Run as root (sudo)" echo "Run as root (sudo)"
exit 1 exit 1
fi fi