From 0af9db939fb0c16cc7fb0d575f82cf1c64481dae Mon Sep 17 00:00:00 2001 From: leo <426742@gmail.com> Date: Sun, 18 Aug 2024 09:37:10 +0500 Subject: [PATCH] autocommit --- install.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/install.sh b/install.sh index 7039264..4de27f3 100644 --- a/install.sh +++ b/install.sh @@ -52,7 +52,7 @@ echo "Install postgres..." cd /data/utils bash global-env.sh POSTGRES_USER admin bash global-env.sh POSTGRES_DB postgres -bash env-gen.sh POSTGRES_PASSWORD +sudo bash env-gen.sh POSTGRES_PASSWORD cd /data git clone git@$GIT_SSH_DOMAIN:$GIT_USER/postgres.git cd postgres @@ -62,7 +62,7 @@ echo "Install pgadmin..." mkdir -p /data/appdata/pgadmin chown -R 5050:5050 /data/appdata/pgadmin cd /data/utils -bash env-gen.sh PGADMIN_DEFAULT_PASSWORD +sudo bash env-gen.sh PGADMIN_DEFAULT_PASSWORD cd /data git clone git@$GIT_SSH_DOMAIN:$GIT_USER/pgadmin.git cd pgadmin @@ -71,7 +71,7 @@ sudo docker compose up -d echo "Install gitea..." cd /data/utils GITEA__database__PASSWD=$(pwgen -s 20 1); -bash env-gen.sh GITEA__database__PASSWD $GITEA__database__PASSWD +sudo bash env-gen.sh GITEA__database__PASSWD $GITEA__database__PASSWD sudo bash init-db.sh gitea $GITEA__database__PASSWD cd /data git clone git@$GIT_SSH_DOMAIN:$GIT_USER/gitea.git @@ -82,11 +82,11 @@ echo "Install mariadb..." cd /data/utils bash global-env.sh MARIADB_USER admin bash global-env.sh MARIADB_DB mariadb -bash env-gen.sh MARIADB_ROOT_PASSWORD +sudo bash env-gen.sh MARIADB_ROOT_PASSWORD MARIADBPASSWORD=$(pwgen -s 20 1); -bash env-gen.sh MARIADB_PASSWORD $MARIADBPASSWORD -bash env-gen.sh WORDPRESS_DB_PASSWORD $MARIADBPASSWORD -bash env-gen.sh WP_ADMIN_PASSWORD +sudo bash env-gen.sh MARIADB_PASSWORD $MARIADBPASSWORD +sudo bash env-gen.sh WORDPRESS_DB_PASSWORD $MARIADBPASSWORD +sudo bash env-gen.sh WP_ADMIN_PASSWORD cd /data git clone git@$GIT_SSH_DOMAIN:$GIT_USER/mariadb.git mkdir -p /data/appdata/mariadb