From dacbe78f7c34947e5dda977b786a863ddc7e5da4 Mon Sep 17 00:00:00 2001 From: vvzvlad Date: Thu, 19 Dec 2024 21:32:36 +0300 Subject: [PATCH] update --- docker-compose.yml | 2 +- install.sh | 55 +++++++++++++++++++++++++++------------------- 2 files changed, 33 insertions(+), 24 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index b7d8e9a..0fa5368 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -135,7 +135,7 @@ services: container_name: grafana restart: unless-stopped depends_on: - - prometheus + - influxdb environment: - GF_SECURITY_ADMIN_USER=admin - GF_SECURITY_ADMIN_PASSWORD=Passing2-Edgy-Vexingly diff --git a/install.sh b/install.sh index 644055a..f8e88f9 100644 --- a/install.sh +++ b/install.sh @@ -5,35 +5,44 @@ apt-get install apt-transport-https prometheus-node-exporter ca-certificates tra apt-get -y autoremove apt-get -y clean apt-get -y autoclean -localectl set-locale LANG=C.UTF-8 -echo "export HISTTIMEFORMAT='%F, %T '" >> /etc/bash.bashrc -echo "export HISTSIZE=10000" >> /etc/bash.bashrc -echo "export HISTFILESIZE=10000" >> /etc/bash.bashrc -echo "shopt -s histappend" >> /etc/bash.bashrc -echo "export PROMPT_COMMAND='history -a'" >> /etc/bash.bashrc -echo "export HISTCONTROL=ignoredups" >> /etc/bash.bashrc -echo "export LANG=C.UTF-8" >> /etc/bash.bashrc -echo "export LC_ALL=C.UTF-8" >> /etc/bash.bashrc +if [ ! -f "/etc/bash.bashrc.soneium" ]; then + localectl set-locale LANG=C.UTF-8 + echo "export HISTTIMEFORMAT='%F, %T '" >> /etc/bash.bashrc + echo "export HISTSIZE=10000" >> /etc/bash.bashrc + echo "export HISTFILESIZE=10000" >> /etc/bash.bashrc + echo "shopt -s histappend" >> /etc/bash.bashrc + echo "export PROMPT_COMMAND='history -a'" >> /etc/bash.bashrc + echo "export HISTCONTROL=ignoredups" >> /etc/bash.bashrc + echo "export LANG=C.UTF-8" >> /etc/bash.bashrc + echo "export LC_ALL=C.UTF-8" >> /etc/bash.bashrc -echo "alias ls='ls --color=auto'" >> /etc/bash.bashrc -echo "shopt -s cmdhist" >> /etc/bash.bashrc -echo $'"\e[A": history-search-backward' >> ~/.inputrc -echo $'"\e[B": history-search-forward' >> ~/.inputrc + echo "alias ls='ls --color=auto'" >> /etc/bash.bashrc + echo "shopt -s cmdhist" >> /etc/bash.bashrc + echo $'"\e[A": history-search-backward' >> ~/.inputrc + echo $'"\e[B": history-search-forward' >> ~/.inputrc -echo "set nohelp" >> ~/.nanorc -echo "set tabsize 4" >> ~/.nanorc -echo "set tabstospaces" >> ~/.nanorc -echo "set autoindent" >> ~/.nanorc -echo "set positionlog" >> ~/.nanorc -echo "set backup" >> ~/.nanorc -echo "set backupdir /tmp/" >> ~/.nanorc -echo "set locking" >> ~/.nanorc -echo "include /usr/share/nano/*.nanorc" >> ~/.nanorc + echo "set nohelp" >> ~/.nanorc + echo "set tabsize 4" >> ~/.nanorc + echo "set tabstospaces" >> ~/.nanorc + echo "set autoindent" >> ~/.nanorc + echo "set positionlog" >> ~/.nanorc + echo "set backup" >> ~/.nanorc + echo "set backupdir /tmp/" >> ~/.nanorc + echo "set locking" >> ~/.nanorc + echo "include /usr/share/nano/*.nanorc" >> ~/.nanorc + + touch /etc/bash.bashrc.soneium +fi -curl -sL https://get.docker.com | sudo sh - +if ! command -v docker &> /dev/null; then + curl -sL https://get.docker.com | sudo sh - +else + echo "Docker is already installed, skipping installation" +fi +cd /root rm -rf /root/node mkdir /root/node cd /root/node