This commit is contained in:
leo 2024-08-08 06:32:17 +05:00
parent f243a99a04
commit bce02cf445

View File

@ -25,7 +25,7 @@ fi
# source $SECRETS_STORE # source $SECRETS_STORE
#fi #fi
trap 'echo -e "\033[31mSomething went wrong\033[0m"; exit 1' EXIT trap 'echo -e "\033[31minstall.sh: Something went wrong\033[0m"; exit 1' EXIT
set -e set -e
export DEBIAN_FRONTEND=noninteractive export DEBIAN_FRONTEND=noninteractive
@ -33,23 +33,27 @@ export DEBIAN_FRONTEND=noninteractive
DOMAIN=$1 DOMAIN=$1
#$SERVER_TYPE=dev #$SERVER_TYPE=dev
mkdir -p /data #mkdir -p /data
chown usradmin:usradmin /data #chown usradmin:usradmin /data
chmod 770 /data #chmod 770 /data
#cd /data #cd /data
#git clone git@$GIT_SSH_DOMAIN:$GIT_USER/utils.git #git clone git@$GIT_SSH_DOMAIN:$GIT_USER/utils.git
cd /data/utils cd /data/utils
#bash init-server.sh #bash init-server.sh
echo "Install docker..."
bash init-docker.sh bash init-docker.sh
echo "Creating docker network proxynet..."
docker network create proxynet docker network create proxynet
# SSH config: # SSH config:
#bash ssh-port.sh $SSHPORT #bash ssh-port.sh $SSHPORT
#ssh-keygen -t ed25519 -C "$ADMINEMAIL" #ssh-keygen -t ed25519 -C "$ADMINEMAIL"
bash cron-list.sh #echo "Init cron list..."
#bash cron-list.sh
# create global environment vars: # create global environment vars:
bash global-env.sh SERVER_DOMAIN $DOMAIN bash global-env.sh SERVER_DOMAIN $DOMAIN
@ -59,6 +63,8 @@ bash global-env.sh TRAEFIK_LOG_LEVEL $TRAEFIKLOGLEVEL
bash global-env.sh ADMIN_EMAIL $ADMINEMAIL bash global-env.sh ADMIN_EMAIL $ADMINEMAIL
bash global-env.sh SRV_START_DIR $STARTDIR bash global-env.sh SRV_START_DIR $STARTDIR
echo "Init cron list..."
bash cron-list.sh
#bash global-env.sh SERVER_TYPE $SERVER_TYPE #bash global-env.sh SERVER_TYPE $SERVER_TYPE