omar-haris / nginx-rtmp-monitoring

real-time monitoring statistics dashboard for nginx rtmp module
MIT License
293 stars 92 forks source link

getting this error when trying to install #35

Open derpy0verl0rd opened 1 year ago

derpy0verl0rd commented 1 year ago

I type in the command to start the setup and I am getting a ./setup.sh: 5: Syntax error: "(" unexpected I don't know whats wrong.

derpy0verl0rd commented 1 year ago

I am running this on Ubuntu 23.04 if that helps with anything.

Nitromorph commented 1 year ago

My guess is you are running into a dash vs bash issue.. setup.sh specifies /usr/bin/env sh environment which in ubuntu will run it with dash. You could attempt to edit setup.sh and replace sh with bash. There are some packages the script uses that ubuntu does not include by default like net-tools and docker compose. With that being said, I am not sure if this runs well on Ubuntu anyways. I gave it a quick shot a few minutes ago on a Ubuntu desktop I am experimenting with Nginx/RTMP and get a bunch of unmaintained package warnings, and the web interface immediately complains with a "Oh we have trubole!" message.