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:
@@ -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 "${TAB}${GATEWAY}${BGN}http://${IP}${CL}"
|
||||||
echo -e "${INFO}${YW} Credentials:${CL}"
|
echo -e "${INFO}${YW} Credentials:${CL}"
|
||||||
echo -e "${TAB}${BGN}Username: Administrator${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}"
|
||||||
|
|||||||
@@ -75,3 +75,6 @@ msg_ok "Completed Successfully!\n"
|
|||||||
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
||||||
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
|
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
|
||||||
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:8000${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}"
|
||||||
|
|||||||
@@ -78,6 +78,14 @@ ADMIN_PASSWORD=${ADMIN_PASS}
|
|||||||
DB_ROOT_PASSWORD=${DB_ROOT_PASS}
|
DB_ROOT_PASSWORD=${DB_ROOT_PASS}
|
||||||
SITE_NAME=site1.local
|
SITE_NAME=site1.local
|
||||||
EOF
|
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
|
$STD systemctl enable --now redis-server
|
||||||
msg_ok "Configured ERPNext"
|
msg_ok "Configured ERPNext"
|
||||||
|
|
||||||
|
|||||||
@@ -48,6 +48,11 @@ NODE_ENV=production
|
|||||||
NEXT_TELEMETRY_DISABLED=1
|
NEXT_TELEMETRY_DISABLED=1
|
||||||
EOF
|
EOF
|
||||||
mkdir -p /opt/storyteller/data
|
mkdir -p /opt/storyteller/data
|
||||||
|
{
|
||||||
|
echo "Storyteller Credentials"
|
||||||
|
echo "======================="
|
||||||
|
echo "Secret Key: ${STORYTELLER_SECRET_KEY}"
|
||||||
|
} >~/storyteller.creds
|
||||||
msg_ok "Set up Storyteller"
|
msg_ok "Set up Storyteller"
|
||||||
|
|
||||||
msg_info "Building Storyteller"
|
msg_info "Building Storyteller"
|
||||||
|
|||||||
@@ -67,6 +67,14 @@ if [ -d "/opt/teable/apps/nestjs-backend/static/static" ]; then
|
|||||||
else
|
else
|
||||||
ln -sf /opt/teable/apps/nestjs-backend/static /opt/teable/static
|
ln -sf /opt/teable/apps/nestjs-backend/static /opt/teable/static
|
||||||
fi
|
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_ok "Configured Teable"
|
||||||
|
|
||||||
msg_info "Creating Service"
|
msg_info "Creating Service"
|
||||||
|
|||||||
@@ -92,6 +92,13 @@ TZ=UTC
|
|||||||
PYTHONUNBUFFERED=1
|
PYTHONUNBUFFERED=1
|
||||||
YTDLP_PLUGIN_DIRS=/opt/yt_plugins
|
YTDLP_PLUGIN_DIRS=/opt/yt_plugins
|
||||||
EOF
|
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
|
$STD systemctl enable --now redis-server
|
||||||
msg_ok "Set up Tube Archivist"
|
msg_ok "Set up Tube Archivist"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user