Feat: Ergänzt Warn-Logmeldung, wenn Programm nicht als Root gestartet wird
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user