From 4f25cdbbd44a3c24eb10ed00203b0f3d3230aebd Mon Sep 17 00:00:00 2001 From: kosenka Date: Mon, 7 Apr 2025 10:37:55 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B4=D0=B0=D0=BB=D0=B8=D1=82=D1=8C=20he?= =?UTF-8?q?st=5Finst=5F2.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hest_inst_2.sh | 44 -------------------------------------------- 1 file changed, 44 deletions(-) delete mode 100644 hest_inst_2.sh diff --git a/hest_inst_2.sh b/hest_inst_2.sh deleted file mode 100644 index 352bbed..0000000 --- a/hest_inst_2.sh +++ /dev/null @@ -1,44 +0,0 @@ -#!/usr/bin/sh - -ColorRed='\033[0;31m' -ColorGreen='\033[0;32m' -ColorOff='\033[0m' - -# Function to display the confirmation prompt -function confirm() { - while true; do - read -p "$1? (y/n) " yn - case $yn in - [Yy]* ) return 0;; - [Nn]* ) return 1;; - esac - done -} - -clear - -# check if running as root in a bash script -# https://stackoverflow.com/a/28776100 -if [ `id -u` -ne 0 ] - then echo Please run this script as root or using sudo! - exit -fi - -echo -e "${ColorGreen}Введите USERNAME:${ColorOff}" -read USERNAME - -echo -e "${ColorGreen}Введите DBPASSWORD:${ColorOff}" -read USERNAME - -usermod -aG sudo $USERNAME -v-change-user-package $USERNAME default -v-change-user-shell $USERNAME bash -v-add-database $USERNAME rfclass_pg rfclass_pg $DBPASSWORD pgsql localhost -v-add-database $USERNAME eis_pg eis_pg $DBPASSWORD pgsql localhost - -echo -e "${ColorGreen}Введите DOMAIN:${ColorOff}" -read DOMAIN - -v-add-domain $USERNAME $DOMAIN -v-delete-mail-domain $USERNAME $DOMAIN -