hcengineering / hcengineering/huly-selfhost
Ngingx.sh no running as root
Open
- Dominant language
- Shell
- Stars
- 3.5k
- Forks
- 469
- PR merge metrics
- No merged PRs in 30d
Description
```
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
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.