SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.
TypeScript apmapplication-monitoringdistributed-tracinggogood-first-issuejaegerloglogsmetricsmonitoringnextjsobservabilityopen-sourceopentelemetryprometheusreactreactjsself-hostedtracingtypescript
refactor: start_docker() (#1410)
Akshay Awateacb372181576
diff --git a/deploy/install.sh b/deploy/install.shindex 492336a566..34ca5356bb 100755--- a/deploy/install.sh+++ b/deploy/install.sh@@ -204,9 +204,14 @@ start_docker() {echo "Starting docker service"$sudo_cmd systemctl start docker.servicefi+ # if [[ -z $sudo_cmd ]]; then+ # docker ps > /dev/null && true+ # if [[ $? -ne 0 ]]; then+ # request_sudo+ # fi+ # fiif [[ -z $sudo_cmd ]]; then- docker ps > /dev/null && true- if [[ $? -ne 0 ]]; then+ if ! docker ps > /dev/null && true; thenrequest_sudofifi@@ -268,8 +273,12 @@ request_sudo() {if (( $EUID != 0 )); thensudo_cmd="sudo"echo -e "Please enter your sudo password, if prompt."- $sudo_cmd -l | grep -e "NOPASSWD: ALL" > /dev/null- if [[ $? -ne 0 ]] && ! $sudo_cmd -v; then+ # $sudo_cmd -l | grep -e "NOPASSWD: ALL" > /dev/null+ # if [[ $? -ne 0 ]] && ! $sudo_cmd -v; then+ # echo "Need sudo privileges to proceed with the installation."+ # exit 1;+ # fi+ if ! $sudo_cmd -l | grep -e "NOPASSWD: ALL" > /dev/null && ! $sudo_cmd -v; thenecho "Need sudo privileges to proceed with the installation."exit 1;fi@@ -303,8 +312,13 @@ echo -e "🌏 Detecting your OS ...\n"check_os# Obtain unique installation id-sysinfo="$(uname -a)"-if [[ $? -ne 0 ]]; then+# sysinfo="$(uname -a)"+# if [[ $? -ne 0 ]]; then+# uuid="$(uuidgen)"+# uuid="${uuid:-$(cat /proc/sys/kernel/random/uuid)}"+# sysinfo="${uuid:-$(cat /proc/sys/kernel/random/uuid)}"+# fi+if ! sysinfo="$(uname -a)"; thenuuid="$(uuidgen)"uuid="${uuid:-$(cat /proc/sys/kernel/random/uuid)}"sysinfo="${uuid:-$(cat /proc/sys/kernel/random/uuid)}"