feat: add .creds files for erpnext, teable, tubearchivist, storyteller

Write credentials to ~/appname.creds matching existing convention
(affine, discourse, ente). Update CT scripts to reference .creds.

- erpnext: admin pass, db root pass
- teable: db pass, secret key
- tubearchivist: admin pass, ES pass
- storyteller: secret key
This commit is contained in:
CanbiZ (MickLesk)
2026-03-25 16:07:52 +01:00
parent f8e8feea87
commit c5e5a938c7
6 changed files with 32 additions and 1 deletions

View File

@@ -46,4 +46,4 @@ echo -e "${INFO}${YW} Access it using the following URL:${CL}"
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}${CL}"
echo -e "${INFO}${YW} Credentials:${CL}"
echo -e "${TAB}${BGN}Username: Administrator${CL}"
echo -e "${TAB}${BGN}Password: see /opt/frappe-bench/.env${CL}"
echo -e "${TAB}${BGN}Password: see ~/erpnext.creds${CL}"

View File

@@ -75,3 +75,6 @@ msg_ok "Completed Successfully!\n"
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:8000${CL}"
echo -e "${INFO}${YW} Credentials:${CL}"
echo -e "${TAB}${BGN}Username: admin${CL}"
echo -e "${TAB}${BGN}Password: see ~/tubearchivist.creds${CL}"

View File

@@ -78,6 +78,14 @@ ADMIN_PASSWORD=${ADMIN_PASS}
DB_ROOT_PASSWORD=${DB_ROOT_PASS}
SITE_NAME=site1.local
EOF
{
echo "ERPNext Credentials"
echo "=================="
echo "Admin Username: Administrator"
echo "Admin Password: ${ADMIN_PASS}"
echo "DB Root Password: ${DB_ROOT_PASS}"
echo "Site Name: site1.local"
} >~/erpnext.creds
$STD systemctl enable --now redis-server
msg_ok "Configured ERPNext"

View File

@@ -48,6 +48,11 @@ NODE_ENV=production
NEXT_TELEMETRY_DISABLED=1
EOF
mkdir -p /opt/storyteller/data
{
echo "Storyteller Credentials"
echo "======================="
echo "Secret Key: ${STORYTELLER_SECRET_KEY}"
} >~/storyteller.creds
msg_ok "Set up Storyteller"
msg_info "Building Storyteller"

View File

@@ -67,6 +67,14 @@ if [ -d "/opt/teable/apps/nestjs-backend/static/static" ]; then
else
ln -sf /opt/teable/apps/nestjs-backend/static /opt/teable/static
fi
{
echo "Teable Credentials"
echo "=================="
echo "Database User: teable"
echo "Database Password: ${PG_DB_PASS}"
echo "Database Name: teable"
echo "Secret Key: ${SECRET_KEY}"
} >~/teable.creds
msg_ok "Configured Teable"
msg_info "Creating Service"

View File

@@ -92,6 +92,13 @@ TZ=UTC
PYTHONUNBUFFERED=1
YTDLP_PLUGIN_DIRS=/opt/yt_plugins
EOF
{
echo "Tube Archivist Credentials"
echo "=========================="
echo "Username: admin"
echo "Password: ${TA_PASSWORD}"
echo "Elasticsearch Password: ${ES_PASSWORD}"
} >~/tubearchivist.creds
$STD systemctl enable --now redis-server
msg_ok "Set up Tube Archivist"