Commit Graph

154 Commits

Author SHA1 Message Date
Christopher
7bc592ad4a 🔑 feat(reset-password): Add fallback for missing user.db (#10)
* 🔑 feat(reset-password): Add fallback for missing user.db

This change adds a fallback mechanism to handle cases where the
`/var/lib/casaos/db/user.db` file is not found. If the file is
missing, the script attempts to check if the file exists in an
alternative location. If found, it backs up the file and restarts
the CasaOS user service to ensure the password reset functionality
works correctly.

* 🔐 feat(reset-password-for-casaos): Remove user.db existence

check and provide alternative method

The changes remove the check for the existence of the `user.db` file
and provide an alternative method to handle the case where the file is
not found. This change is intended to make the password reset process
more robust and accommodate systems where the `user.db` file may not be
present.
2024-09-29 09:49:54 -05:00
Christopher
1162c3f5e4 🚀 feat(reset-password): Enhance CasaOS password reset script (#9)
This commit introduces several improvements to the CasaOS password reset script:

- Adds functions to print headers, check service status, and backup the user database.
- Checks if the script is run with sudo privileges.
- Displays a welcome message with links and information about supporting the project.
- Checks if the CasaOS service is active before proceeding.
- Prompts the user for confirmation before resetting the password.
- Backs up the user database before removing the original file.
- Restarts the CasaOS user service to reflect the changes.
- Provides clear success and error messages to the user.

These changes aim to make the password reset process more robust, user-friendly, and informative.
2024-09-29 09:41:51 -05:00
Christopher
66283166f1 update-casaos-healthcheck-to-3.0 (#8)
* 🎨 feat(healthcheck): add new health checks for Docker and storage

This commit introduces two new health checks to the BigBearCasaOS
Healthcheck script:

1. `check_docker_status()`: This function checks if Docker is installed and
   running on the system. It provides clear feedback based on the Docker
   status.

2. `check_storage_health()`: This function checks the health of all storage
   devices (disks) connected to the system using the `smartctl` tool. It
   reports the health status of each disk, indicating if it has passed the
   SMART health check or if there may be potential issues.

These new health checks provide a more comprehensive overview of the system's
overall health and help identify any potential issues related to Docker or
storage-related problems.

* 📄 feat(casaos-healthcheck): Enhance DNS resolution and add system health checks

This change enhances the DNS resolution checks in the casaos-healthcheck script and adds new system health checks for disk space, CPU load, memory usage, and system temperature.

The key changes include:

- Improve DNS resolution by trying multiple DNS servers and retrying on failure
- Add a check for basic network connectivity before attempting DNS lookups
- Implement a check for disk space usage, with a configurable threshold
- Implement a check for CPU load, with a configurable threshold based on the number of cores
- Implement a check for memory usage, with a configurable threshold based on total memory
- Implement a check for system temperature, using the `sensors` command or `/sys/class/thermal` when available
- Add a check for available system updates using `apt-get`

These new checks provide a more comprehensive health monitoring solution for the CasaOS system.

*  feat: Bump healthcheck version to 3.0

Bumped the version of the BigBearCasaOS Healthcheck tool from 2.3 to 3.0.
This change reflects the latest updates and improvements made to the
healthcheck script.
2024-09-27 09:56:57 -05:00
Christopher
3618385fe9 feat: Enhance Docker cleanup script (#7)
This commit introduces several improvements to the Docker cleanup script:

- Adds a verbose mode to print detailed messages during the cleanup process.
- Implements a dry run mode to simulate the cleanup without actually removing any resources.
- Improves the container, image, volume, and network cleanup functions to better handle the cleanup process and provide more informative output.
- Adds a summary of the cleanup results at the end of the script.
- Includes a help message to explain the available options.
- Refactors the script to improve readability and maintainability.

The main goal of these changes is to provide a more user-friendly and robust Docker cleanup solution.
2024-09-26 10:48:56 -05:00
Christopher
7ac7d17233 feat(update-portainer-ce): Preserve current Portainer ports (#5)
This change ensures that the new Portainer container is created with the same ports as the
current configuration. It first checks the existing Portainer container to get the
current port mappings, and then uses those values when starting the new container.
This way, clients do not need to update any of their configurations when the Portainer
version is updated.
2024-09-05 23:25:13 -05:00
Christopher
c7d482b757 feat: Enhance run.sh with improved app listing and editor selection, adding error handling and user-friendly prompts 2024-08-14 11:56:20 -05:00
Christopher
e470f0e829 feat: Add GitLab registry to DNS resolution check in healthcheck script for improved coverage and troubleshooting 2024-08-12 13:32:58 -05:00
Christopher
578dfab6b8 feat: Add DNS resolution check for Docker registries in healthcheck script to enhance troubleshooting capabilities 2024-08-12 13:27:37 -05:00
Christopher
015dba2795 feat: Update healthcheck script header to reflect version change for clarity and better version tracking 2024-08-12 13:15:20 -05:00
Christopher
ea6dccb8d9 feat: Refactor error detection in healthcheck script to use configurable non-error patterns for improved flexibility and maintenance 2024-08-12 13:14:17 -05:00
Christopher
add3bb0cd3 feat: Update healthcheck script to include warning for inactive casaos-local-storage-first.service to improve service monitoring 2024-08-12 13:10:32 -05:00
Christopher
f8559dbdd7 feat: Enhance CasaOS healthcheck script with service status checks, colored output, and improved logging for better error visibility 2024-08-12 13:00:58 -05:00
Christopher
daaa05fdbd feat: Refactor run script for Invoice Ninja setup by separating environment file copy into its own command for clarity 2024-08-11 21:24:17 -05:00
Christopher
f967249292 feat: Add README and run script for Invoice Ninja setup on CasaOS, including branding and support information 2024-08-11 21:11:38 -05:00
Christopher
237d52aae2 feat: Add setup script and README for Invoice Ninja integration with CasaOS, including file downloads and verification steps 2024-08-11 21:10:52 -05:00
Christopher
782fa54d87 feat: Improve version selection logic in Portainer CE update script for clearer user input handling and default selection 2024-08-11 15:27:56 -05:00
Christopher
d5e65adab8 feat: Enhance Portainer CE update script with version selection, image removal, and improved informational prompts 2024-08-11 15:20:49 -05:00
Christopher
13ad1c1b9e feat: Add branding message and improve comments for clarity in Portainer CE update script 2024-08-11 15:09:26 -05:00
Christopher
8c406f26ac feat: Enhance Portainer CE update script with decorative intro and support message for user engagement 2024-08-11 15:01:14 -05:00
Christopher
51f78e03e5 feat: Add README and script to update Portainer CE with version check and user confirmation 2024-08-11 13:12:40 -05:00
Christopher
8e540677e8 feat: Add README and script to save Unifi network application MongoDB config file with user prompt and URL download 2024-08-06 21:31:18 -05:00
Christopher
831d9199bf feat: Add README and script to list and restart USB devices interactively 2024-08-02 16:49:57 -05:00
Christopher
688269f473 Update run.sh script to check and ensure NTP is running 2024-07-26 23:28:50 -05:00
Christopher
502cb9403c feat: Add script to update time and timezone 2024-07-26 18:59:24 -05:00
Christopher
ed52a5037e chore: Update download-zim-files script URL 2024-07-12 12:32:33 -05:00
Christopher
e494ad9480 chore: Apply changes to big-bear-kiwix-serve using casaos-cli 2024-07-12 12:29:13 -05:00
Christopher
adbd318ff7 chore: Update download-zim-files script with decorative message and support link 2024-07-12 12:22:56 -05:00
Christopher
7816130a14 Update download-zim-files script URL 2024-07-12 12:17:47 -05:00
Christopher
205a485ff8 feat: add download-zim-files script 2024-07-12 12:15:50 -05:00
Christopher
fd09bc224e chore: Update URL for downloading init-data.sh script in run.sh 2024-06-14 11:08:25 -05:00
Christopher
163bcb3dc1 feat: Add script to generate n8n initialization data 2024-06-14 11:07:39 -05:00
Christopher
34bd9d4c0c feat: Add script to check for Docker port usage 2024-06-02 13:49:51 -05:00
Christopher
d98401b795 chore: Add more comments to the blocking websites script 2024-06-01 15:03:34 -05:00
Christopher
41a06c65d9 Refactor start and end markers in run.sh script for website blocking 2024-06-01 14:58:44 -05:00
Christopher
37ea6e73cd feat: Update toggle-website-blocking script to use relative path for CONFIG_FILE 2024-06-01 14:57:54 -05:00
Christopher
3fab85c26b feat: Update toggle-website-blocking script to use sudo for running the script 2024-06-01 14:57:34 -05:00
Christopher
e1dc535d6b Refactor run.sh script to use relative path for CONFIG_FILE 2024-06-01 14:55:02 -05:00
Christopher
764e828f8e feat: Improve welcome message and settings handling in toggle-website-blocking script 2024-06-01 14:50:26 -05:00
Christopher
bbd207a513 feat: Update toggle-website-blocking script to use curl or wget for downloading and running the script 2024-06-01 14:06:59 -05:00
Christopher
9da3308074 Refactor website blocking script and settings configuration 2024-06-01 14:02:14 -05:00
Christopher
c619939d96 feat: Add script to toggle website blocking 2024-06-01 13:46:20 -05:00
Christopher
6f54010a49 feat: Add disk usage monitoring script 2024-05-19 20:45:29 -05:00
Christopher
490f93cdd7 chore: Update run.sh script to prompt for uninstallation of Docker installed via Snap 2024-05-16 16:31:23 -05:00
Christopher
37a1218e54 feat: Add script to check if Docker is running on Snap 2024-05-16 16:30:23 -05:00
Christopher
f3eeade4bf feat: Add script to delete Docker volumes by keyword 2024-05-04 14:20:35 -05:00
Christopher
c3a0c2e6ed Add batch-docker-volume-delete script for removing Docker volumes 2024-05-04 14:16:36 -05:00
Christopher
09e68f80e0 Add internal hard drive disk cache cleaner scripts 2024-04-18 10:37:58 -05:00
Christopher
744be7c4dc Add update-docker-and-docker-compose scripts 2024-04-08 17:44:40 -05:00
Christopher
f2c9401144 Add README.md update for install-hacs-in-home-assistant-docker script 2024-03-28 10:44:47 -05:00
Christopher
ea66dcf100 Add installation instructions for HACS in Home Assistant Docker 2024-03-28 10:43:04 -05:00