This commit is contained in:
vvzvlad 2024-12-19 21:32:36 +03:00
parent 19c41d9e50
commit dacbe78f7c
2 changed files with 33 additions and 24 deletions

View File

@ -135,7 +135,7 @@ services:
container_name: grafana container_name: grafana
restart: unless-stopped restart: unless-stopped
depends_on: depends_on:
- prometheus - influxdb
environment: environment:
- GF_SECURITY_ADMIN_USER=admin - GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=Passing2-Edgy-Vexingly - GF_SECURITY_ADMIN_PASSWORD=Passing2-Edgy-Vexingly

View File

@ -5,35 +5,44 @@ apt-get install apt-transport-https prometheus-node-exporter ca-certificates tra
apt-get -y autoremove apt-get -y autoremove
apt-get -y clean apt-get -y clean
apt-get -y autoclean apt-get -y autoclean
localectl set-locale LANG=C.UTF-8
echo "export HISTTIMEFORMAT='%F, %T '" >> /etc/bash.bashrc if [ ! -f "/etc/bash.bashrc.soneium" ]; then
echo "export HISTSIZE=10000" >> /etc/bash.bashrc localectl set-locale LANG=C.UTF-8
echo "export HISTFILESIZE=10000" >> /etc/bash.bashrc echo "export HISTTIMEFORMAT='%F, %T '" >> /etc/bash.bashrc
echo "shopt -s histappend" >> /etc/bash.bashrc echo "export HISTSIZE=10000" >> /etc/bash.bashrc
echo "export PROMPT_COMMAND='history -a'" >> /etc/bash.bashrc echo "export HISTFILESIZE=10000" >> /etc/bash.bashrc
echo "export HISTCONTROL=ignoredups" >> /etc/bash.bashrc echo "shopt -s histappend" >> /etc/bash.bashrc
echo "export LANG=C.UTF-8" >> /etc/bash.bashrc echo "export PROMPT_COMMAND='history -a'" >> /etc/bash.bashrc
echo "export LC_ALL=C.UTF-8" >> /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 "alias ls='ls --color=auto'" >> /etc/bash.bashrc
echo "shopt -s cmdhist" >> /etc/bash.bashrc echo "shopt -s cmdhist" >> /etc/bash.bashrc
echo $'"\e[A": history-search-backward' >> ~/.inputrc echo $'"\e[A": history-search-backward' >> ~/.inputrc
echo $'"\e[B": history-search-forward' >> ~/.inputrc echo $'"\e[B": history-search-forward' >> ~/.inputrc
echo "set nohelp" >> ~/.nanorc echo "set nohelp" >> ~/.nanorc
echo "set tabsize 4" >> ~/.nanorc echo "set tabsize 4" >> ~/.nanorc
echo "set tabstospaces" >> ~/.nanorc echo "set tabstospaces" >> ~/.nanorc
echo "set autoindent" >> ~/.nanorc echo "set autoindent" >> ~/.nanorc
echo "set positionlog" >> ~/.nanorc echo "set positionlog" >> ~/.nanorc
echo "set backup" >> ~/.nanorc echo "set backup" >> ~/.nanorc
echo "set backupdir /tmp/" >> ~/.nanorc echo "set backupdir /tmp/" >> ~/.nanorc
echo "set locking" >> ~/.nanorc echo "set locking" >> ~/.nanorc
echo "include /usr/share/nano/*.nanorc" >> ~/.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 rm -rf /root/node
mkdir /root/node mkdir /root/node
cd /root/node cd /root/node