case "${RUN_NGINX:-Y}" in
[Yy]*)
echo -e "\033[1;32mRunning 'nginx -s reload' now...\033[0m"
if (($(id -u) == 0)); then
sudo nginx -s reload
else
nginx -s reload
fi
;;
[Nn]*)
echo "You can run 'nginx -s reload' later to load your updated Huly config."
;;
The script is not running as root because sudo is not a valid command. Could it have a condition before the execution
The script is not running as root because sudo is not a valid command. Could it have a condition before the execution