helpers: fix exec_initscript

Origin commit data
------------------
Branch: ni/coolstream
Commit: 8cb24ed24c
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-06-29 (Tue, 29 Jun 2021)

Origin message was:
------------------
- helpers: fix exec_initscript

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2021-06-29 21:22:07 +02:00
parent d7be7d29c2
commit 29ec36cd81

View File

@@ -570,10 +570,6 @@ bool exec_controlscript(std::string script)
bool exec_initscript(std::string script, std::string command, std::string system_command) bool exec_initscript(std::string script, std::string command, std::string system_command)
{ {
const char* user = getenv("USER");
if (strncmp("root", user, 4))
dprintf(DEBUG_NORMAL, "[helpers] [%s - %d] NOTE: current user %s is not root!\n", __func__, __LINE__, user);
int ret = 1; int ret = 1;
if (system_command == "service") if (system_command == "service")
{ {