Skip to content

Ngingx.sh no running as root #277

@javier-anton-ordonez

Description

@javier-anton-ordonez
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions