[PR #21] 🔧 feat(casaos-update-database-password): Add script to update database password #25

Open
opened 2025-11-20 04:14:21 -05:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/bigbeartechworld/big-bear-scripts/pull/21
Author: @dragonfire1119
Created: 11/15/2024
Status: 🔄 Open

Base: masterHead: casaos-update-database-password


📝 Commits (3)

  • d15f1cb 🔧 feat(casaos-update-database-password): Add script to update database password
  • 16d315a feat(casaos-update-database-password): Remove .env file update
  • f5bc70a feat(casaos-update-database-password): Update README to remove

📊 Changes

2 files changed (+171 additions, -0 deletions)

View changed files

casaos-update-database-password/README.md (+16 -0)
casaos-update-database-password/run.sh (+155 -0)

📄 Description

This is a work in progress

This pull request adds a new script run.sh that allows users to update the database password for their CasaOS application. The script supports both PostgreSQL and MySQL/MariaDB databases, and it provides instructions for updating the password in the docker-compose.yml file.

The key features of this script include:

  • Checking if the script is run as root
  • Displaying a user-friendly introduction and instructions
  • Allowing the user to select the database container to update
  • Prompting the user to enter a new password
  • Updating the password in the database container
  • Providing an option to edit the docker-compose.yml file using the user's preferred editor (nano or vim)
  • Applying the changes using the casaos-cli tool

This script aims to simplify the process of updating the database password for CasaOS users, making it more accessible and user-friendly.

Summary by CodeRabbit

  • New Features

    • Introduced a new script for updating database passwords for PostgreSQL and MySQL/MariaDB containers.
    • Added interactive selection for running database containers and secure password input.
    • Provided a command snippet for easy execution of the script.
  • Documentation

    • Added a comprehensive README.md detailing the script's purpose, features, and usage instructions.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/bigbeartechworld/big-bear-scripts/pull/21 **Author:** [@dragonfire1119](https://github.com/dragonfire1119) **Created:** 11/15/2024 **Status:** 🔄 Open **Base:** `master` ← **Head:** `casaos-update-database-password` --- ### 📝 Commits (3) - [`d15f1cb`](https://github.com/bigbeartechworld/big-bear-scripts/commit/d15f1cb139a0cbe26f97b9fd0c2e4e927b46d966) 🔧 feat(casaos-update-database-password): Add script to update database password - [`16d315a`](https://github.com/bigbeartechworld/big-bear-scripts/commit/16d315a190b503c82d51783c30f81f66f263b6ba) ✨ feat(casaos-update-database-password): Remove .env file update - [`f5bc70a`](https://github.com/bigbeartechworld/big-bear-scripts/commit/f5bc70a200cc31e2cc9848657de76085c0c83b19) ✨ feat(casaos-update-database-password): Update README to remove ### 📊 Changes **2 files changed** (+171 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `casaos-update-database-password/README.md` (+16 -0) ➕ `casaos-update-database-password/run.sh` (+155 -0) </details> ### 📄 Description **This is a work in progress** This pull request adds a new script `run.sh` that allows users to update the database password for their CasaOS application. The script supports both PostgreSQL and MySQL/MariaDB databases, and it provides instructions for updating the password in the `docker-compose.yml` file. The key features of this script include: - Checking if the script is run as root - Displaying a user-friendly introduction and instructions - Allowing the user to select the database container to update - Prompting the user to enter a new password - Updating the password in the database container - Providing an option to edit the `docker-compose.yml` file using the user's preferred editor (nano or vim) - Applying the changes using the `casaos-cli` tool This script aims to simplify the process of updating the database password for CasaOS users, making it more accessible and user-friendly. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced a new script for updating database passwords for PostgreSQL and MySQL/MariaDB containers. - Added interactive selection for running database containers and secure password input. - Provided a command snippet for easy execution of the script. - **Documentation** - Added a comprehensive README.md detailing the script's purpose, features, and usage instructions. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2025-11-20 04:14:21 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/big-bear-scripts#25