This commit is contained in:
leo 2024-07-30 05:21:37 +05:00
parent 34139df75e
commit 7a3ed0893d

View File

@ -8,14 +8,14 @@ if [ "$(id -u)" != "0" ]; then
exit 0
fi
trap 'echo -e "\033[31mSomething went wrong\033[0m"; exit 1' EXIT
trap 'echo -e "\033[31mSomething went wrong\033[0m"; exit 1' ERR
set -e
export DEBIAN_FRONTEND=noninteractive
apt update -y
apt upgrade -y
apt install -y mc vim zip pwgen
apt install -y mc vim zip pwgen sshpass
timedatectl set-timezone Asia/Yekaterinburg
echo "Timezone changed:"
@ -40,5 +40,5 @@ cd /data/utils
bash ssh-port.sh $SSH_PORT
#bash ssh-pw.sh n
trap - EXIT
trap - ERR
echo "Init complete"