Feat: Ergänzt Warn-Logmeldung, wenn Programm nicht als Root gestartet wird

This commit is contained in:
2025-08-21 00:21:45 +02:00
parent d26c3e9856
commit 69a2146c34

View File

@@ -22,6 +22,7 @@ fn main() {
log("main", "========== PROGRAM START ==========", LogLevel::Info);
if !is_run_as_root() {
log("main", "Program is not run as root. Trying to run as root...", LogLevel::Warn);
run_as_root();
}