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