fix: use APPLICATION var and append to db creds file
- Set APPLICATION before setup_postgresql_db so it creates ~/plane.creds - Append additional credentials to existing creds file instead of overwriting
This commit is contained in:
@@ -34,7 +34,7 @@ msg_ok "Installed Dependencies"
|
|||||||
|
|
||||||
NODE_VERSION="22" setup_nodejs
|
NODE_VERSION="22" setup_nodejs
|
||||||
PG_VERSION="16" setup_postgresql
|
PG_VERSION="16" setup_postgresql
|
||||||
PG_DB_NAME="plane" PG_DB_USER="plane" setup_postgresql_db
|
APPLICATION="Plane" PG_DB_NAME="plane" PG_DB_USER="plane" setup_postgresql_db
|
||||||
get_lxc_ip
|
get_lxc_ip
|
||||||
|
|
||||||
msg_info "Configuring RabbitMQ"
|
msg_info "Configuring RabbitMQ"
|
||||||
@@ -369,17 +369,13 @@ msg_ok "Configured Nginx"
|
|||||||
|
|
||||||
msg_info "Saving Credentials"
|
msg_info "Saving Credentials"
|
||||||
{
|
{
|
||||||
echo "Plane Credentials"
|
|
||||||
echo "================================"
|
|
||||||
echo "Database User: ${PG_DB_USER}"
|
|
||||||
echo "Database Password: ${PG_DB_PASS}"
|
|
||||||
echo "RabbitMQ User: plane"
|
echo "RabbitMQ User: plane"
|
||||||
echo "RabbitMQ Password: ${RABBITMQ_PASS}"
|
echo "RabbitMQ Password: ${RABBITMQ_PASS}"
|
||||||
echo "MinIO Access Key: ${MINIO_ACCESS_KEY}"
|
echo "MinIO Access Key: ${MINIO_ACCESS_KEY}"
|
||||||
echo "MinIO Secret Key: ${MINIO_SECRET_KEY}"
|
echo "MinIO Secret Key: ${MINIO_SECRET_KEY}"
|
||||||
echo "Secret Key: ${SECRET_KEY}"
|
echo "Secret Key: ${SECRET_KEY}"
|
||||||
echo "Config: /opt/plane/apps/api/.env"
|
echo "Config: /opt/plane/apps/api/.env"
|
||||||
} >~/plane.creds
|
} >>~/plane.creds
|
||||||
msg_ok "Saved Credentials"
|
msg_ok "Saved Credentials"
|
||||||
|
|
||||||
motd_ssh
|
motd_ssh
|
||||||
|
|||||||
Reference in New Issue
Block a user