From 222e6af25848ceb52636e1b4e255462761938afd Mon Sep 17 00:00:00 2001 From: Christopher <1289128+dragonfire1119@users.noreply.github.com> Date: Wed, 23 Oct 2024 13:32:15 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20refactor:=20Use=20#!/usr/bin/env?= =?UTF-8?q?=20bash=20in=20all=20shell=20scripts=20(#16)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit refactors all the shell scripts to use `#!/usr/bin/env bash` instead of `#!/bin/bash`. This change ensures that the scripts will run with the system's default Bash interpreter, even if it is not located at the standard `/bin/bash` path. --- batch-docker-volume-delete/run.sh | 2 +- calculate-php-pool/run.sh | 2 +- casaos-add-lan-ip-to-nextcloud-config/run.sh | 2 +- casaos-add-pm-to-nextcloud/run.sh | 2 +- casaos-appstore-edge/run.sh | 2 +- casaos-appstore-fix/run.sh | 2 +- casaos-check-if-blocked-by-ufw/run.sh | 2 +- casaos-docker-compose-update/run.sh | 2 +- casaos-generate-financial-freedom-app-key/run.sh | 2 +- casaos-immich-vectors-upgrade/run.sh | 2 +- change-casaos-web-ui-port/run.sh | 2 +- check-for-docker-port/run.sh | 2 +- check-if-docker-is-running-on-snap/run.sh | 2 +- copy-codex-docs-config/run.sh | 2 +- delete-docker-volumes-by-keyword/run.sh | 2 +- disable-dns-service/disable_dns_service.sh | 2 +- disk-usage-monitor/run.sh | 2 +- docker-cleanup/run.sh | 2 +- docker-exec-helper/run.sh | 2 +- download-zim-files/run.sh | 2 +- edit-casaos-apps/run.sh | 2 +- enable-dns-service/enable_dns_service.sh | 2 +- enable-ssh-on-pve-lxc/run.sh | 2 +- find-your-casaos-ip-and-port/run.sh | 2 +- frigate-casaos/create_config.sh | 2 +- generate-adguard-home-config/run.sh | 2 +- generate-dashy-config/run.sh | 2 +- generate-n8n-init-data/init-data.sh | 2 +- generate-n8n-init-data/run.sh | 2 +- generate-obsidian-livesync-local-ini/run.sh | 2 +- generate-romm-config/run.sh | 2 +- generate-traccar-config-for-casaos/run.sh | 2 +- generate-traccar-config/run.sh | 2 +- generate-unifi-network-application-init-mongo-for-casaos/run.sh | 2 +- generate-unifi-network-application-init-mongo-for-cosmos/run.sh | 2 +- generate-unifi-network-application-init-mongo-sh/run.sh | 2 +- generate-unifi-network-application-init-mongo/run.sh | 2 +- get-docker-logs/run.sh | 2 +- get-lan-ip/run.sh | 2 +- immich-add-vector-to-db/run.sh | 2 +- install-docker/run.sh | 2 +- install-hacs-in-home-assistant-docker/run.sh | 2 +- install-or-update-dockge/run.sh | 2 +- install-pingvin-share/install.sh | 2 +- internal-hard-drive-disk-cache-cleaner/run.sh | 2 +- reboot-usb/run.sh | 2 +- reinstall-casaos/run.sh | 2 +- reset-password-for-casaos/run.sh | 2 +- runtipi/install.sh | 2 +- setup-invoice-ninja-for-casaos-step-1/run.sh | 2 +- setup-invoice-ninja-for-casaos-step-2/run.sh | 2 +- start-pterodactyl-panel/run.sh | 2 +- test-smtp-connection/run.sh | 2 +- toggle-website-blocking/run.sh | 2 +- unbound/install.sh | 2 +- uninstall-dockge/run.sh | 2 +- update-docker-and-docker-compose/run.sh | 2 +- update-etc-resolve/run.sh | 2 +- update-portainer-ce/run.sh | 2 +- update-time-and-timezone/run.sh | 2 +- update-ubuntu-or-debian-server/run.sh | 2 +- 61 files changed, 61 insertions(+), 61 deletions(-) diff --git a/batch-docker-volume-delete/run.sh b/batch-docker-volume-delete/run.sh index 1bfb64e..7996413 100644 --- a/batch-docker-volume-delete/run.sh +++ b/batch-docker-volume-delete/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Function to list volumes and allow user selection select_and_remove_volumes() { diff --git a/calculate-php-pool/run.sh b/calculate-php-pool/run.sh index 94c5f87..2b3b804 100644 --- a/calculate-php-pool/run.sh +++ b/calculate-php-pool/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Colors and styling BLUE='\033[0;34m' diff --git a/casaos-add-lan-ip-to-nextcloud-config/run.sh b/casaos-add-lan-ip-to-nextcloud-config/run.sh index 00af058..f1feb70 100644 --- a/casaos-add-lan-ip-to-nextcloud-config/run.sh +++ b/casaos-add-lan-ip-to-nextcloud-config/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Get the LAN IP address lan_ip=$(hostname -I | awk '{print $1}') diff --git a/casaos-add-pm-to-nextcloud/run.sh b/casaos-add-pm-to-nextcloud/run.sh index 2430779..4cc95e0 100644 --- a/casaos-add-pm-to-nextcloud/run.sh +++ b/casaos-add-pm-to-nextcloud/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Path where nextcloud directories are located APP_DIR="/var/lib/casaos/apps" diff --git a/casaos-appstore-edge/run.sh b/casaos-appstore-edge/run.sh index 24e29ca..8065195 100644 --- a/casaos-appstore-edge/run.sh +++ b/casaos-appstore-edge/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Function to install Edge Appstore installEdgeAppstore() { diff --git a/casaos-appstore-fix/run.sh b/casaos-appstore-fix/run.sh index 66e5471..3ab2b22 100644 --- a/casaos-appstore-fix/run.sh +++ b/casaos-appstore-fix/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # URLs for the app stores NEW_APP_STORE_URL="https://github.com/IceWhaleTech/CasaOS-AppStore/archive/19b9149ce0bd50ffb8c898e283dc441605a3a369.zip" diff --git a/casaos-check-if-blocked-by-ufw/run.sh b/casaos-check-if-blocked-by-ufw/run.sh index b7a51d1..26fd93e 100644 --- a/casaos-check-if-blocked-by-ufw/run.sh +++ b/casaos-check-if-blocked-by-ufw/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Path to the configuration file CONFIG_FILE="/etc/casaos/gateway.ini" diff --git a/casaos-docker-compose-update/run.sh b/casaos-docker-compose-update/run.sh index c95394e..fca142e 100644 --- a/casaos-docker-compose-update/run.sh +++ b/casaos-docker-compose-update/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash MESSAGE="Made by BigBearTechWorld" diff --git a/casaos-generate-financial-freedom-app-key/run.sh b/casaos-generate-financial-freedom-app-key/run.sh index bf73631..693749b 100644 --- a/casaos-generate-financial-freedom-app-key/run.sh +++ b/casaos-generate-financial-freedom-app-key/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Access the Docker container and run the command key=$(docker exec big-bear-financial-freedom php artisan key:generate --show) diff --git a/casaos-immich-vectors-upgrade/run.sh b/casaos-immich-vectors-upgrade/run.sh index a4a2336..6355a69 100644 --- a/casaos-immich-vectors-upgrade/run.sh +++ b/casaos-immich-vectors-upgrade/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ######################################################################################### # # diff --git a/change-casaos-web-ui-port/run.sh b/change-casaos-web-ui-port/run.sh index 9ae4f54..e7baa9a 100644 --- a/change-casaos-web-ui-port/run.sh +++ b/change-casaos-web-ui-port/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Ask the user for the new port number read -p "Enter the new port number for CasaOS: " new_port diff --git a/check-for-docker-port/run.sh b/check-for-docker-port/run.sh index cbf60e9..295afa3 100644 --- a/check-for-docker-port/run.sh +++ b/check-for-docker-port/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Function to check if jq is installed check_jq_installed() { diff --git a/check-if-docker-is-running-on-snap/run.sh b/check-if-docker-is-running-on-snap/run.sh index e7e8b13..ec3436e 100644 --- a/check-if-docker-is-running-on-snap/run.sh +++ b/check-if-docker-is-running-on-snap/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Function to ask for user confirmation confirm() { diff --git a/copy-codex-docs-config/run.sh b/copy-codex-docs-config/run.sh index cc95e87..297cce2 100644 --- a/copy-codex-docs-config/run.sh +++ b/copy-codex-docs-config/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Default URL of the file to download default_url="https://raw.githubusercontent.com/codex-team/codex.docs/main/docs-config.yaml" diff --git a/delete-docker-volumes-by-keyword/run.sh b/delete-docker-volumes-by-keyword/run.sh index 186b757..149a308 100644 --- a/delete-docker-volumes-by-keyword/run.sh +++ b/delete-docker-volumes-by-keyword/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # List all Docker volumes echo "Here are all the available Docker volumes:" diff --git a/disable-dns-service/disable_dns_service.sh b/disable-dns-service/disable_dns_service.sh index b0fa500..7967811 100644 --- a/disable-dns-service/disable_dns_service.sh +++ b/disable-dns-service/disable_dns_service.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script modifies the DNS settings and disables systemd-resolved diff --git a/disk-usage-monitor/run.sh b/disk-usage-monitor/run.sh index cd3ee49..5d00856 100644 --- a/disk-usage-monitor/run.sh +++ b/disk-usage-monitor/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Default values EMAIL="" diff --git a/docker-cleanup/run.sh b/docker-cleanup/run.sh index 782c725..0c303a0 100644 --- a/docker-cleanup/run.sh +++ b/docker-cleanup/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e diff --git a/docker-exec-helper/run.sh b/docker-exec-helper/run.sh index df51e8a..310e937 100644 --- a/docker-exec-helper/run.sh +++ b/docker-exec-helper/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # List all running containers containers=$(docker ps --format "{{.Names}}") diff --git a/download-zim-files/run.sh b/download-zim-files/run.sh index faeb798..a27cd52 100644 --- a/download-zim-files/run.sh +++ b/download-zim-files/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash MESSAGE="Made by BigBearTechWorld" diff --git a/edit-casaos-apps/run.sh b/edit-casaos-apps/run.sh index 4d0c258..b93f0a0 100644 --- a/edit-casaos-apps/run.sh +++ b/edit-casaos-apps/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Define the apps directory APPS_DIR="/var/lib/casaos/apps" diff --git a/enable-dns-service/enable_dns_service.sh b/enable-dns-service/enable_dns_service.sh index 59d6064..396161b 100644 --- a/enable-dns-service/enable_dns_service.sh +++ b/enable-dns-service/enable_dns_service.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script restores the original DNS settings and re-enables systemd-resolved diff --git a/enable-ssh-on-pve-lxc/run.sh b/enable-ssh-on-pve-lxc/run.sh index a9dc681..7c3e0d8 100644 --- a/enable-ssh-on-pve-lxc/run.sh +++ b/enable-ssh-on-pve-lxc/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Check for root privileges if [[ $EUID -ne 0 ]]; then diff --git a/find-your-casaos-ip-and-port/run.sh b/find-your-casaos-ip-and-port/run.sh index a27ec6e..3907ea1 100644 --- a/find-your-casaos-ip-and-port/run.sh +++ b/find-your-casaos-ip-and-port/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Path to the configuration file CONFIG_FILE="/etc/casaos/gateway.ini" diff --git a/frigate-casaos/create_config.sh b/frigate-casaos/create_config.sh index 3755c82..e4da32d 100644 --- a/frigate-casaos/create_config.sh +++ b/frigate-casaos/create_config.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash CONFIG_PATH="/DATA/AppData/frigate/config/config.yml" diff --git a/generate-adguard-home-config/run.sh b/generate-adguard-home-config/run.sh index d618559..deacbdd 100644 --- a/generate-adguard-home-config/run.sh +++ b/generate-adguard-home-config/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Prompt the user for the file path or use the default read -p "Enter the file path to save the configuration (default: /DATA/AppData/big-bear-adguard-home/data/conf): " file_path diff --git a/generate-dashy-config/run.sh b/generate-dashy-config/run.sh index a4c562f..a425ba0 100644 --- a/generate-dashy-config/run.sh +++ b/generate-dashy-config/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Ask the user for the desired config location read -p "Enter the location to save the config (default: /DATA/AppData/big-bear-dashy/public/conf.yml): " location diff --git a/generate-n8n-init-data/init-data.sh b/generate-n8n-init-data/init-data.sh index f34e769..5f08aad 100644 --- a/generate-n8n-init-data/init-data.sh +++ b/generate-n8n-init-data/init-data.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e; if [ -n "${POSTGRES_NON_ROOT_USER:-}" ] && [ -n "${POSTGRES_NON_ROOT_PASSWORD:-}" ]; then diff --git a/generate-n8n-init-data/run.sh b/generate-n8n-init-data/run.sh index 3a1097d..e376d0d 100644 --- a/generate-n8n-init-data/run.sh +++ b/generate-n8n-init-data/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Ask the user for the desired config location read -p "Enter the location to save the config (default: /DATA/AppData/big-bear-n8n/db/init-data.sh): " location diff --git a/generate-obsidian-livesync-local-ini/run.sh b/generate-obsidian-livesync-local-ini/run.sh index b742dc1..f79b1ab 100644 --- a/generate-obsidian-livesync-local-ini/run.sh +++ b/generate-obsidian-livesync-local-ini/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Ask the user for the desired config location read -p "Enter the location to save the config (default: /DATA/AppData/big-bear-obsidian-livesync/data/local.ini): " location diff --git a/generate-romm-config/run.sh b/generate-romm-config/run.sh index 7aad7ce..d1b326c 100644 --- a/generate-romm-config/run.sh +++ b/generate-romm-config/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Ask the user for the desired config location read -p "Enter the location to save the config (default: /DATA/AppData/big-bear-romm/config/config.yml): " location diff --git a/generate-traccar-config-for-casaos/run.sh b/generate-traccar-config-for-casaos/run.sh index e55b6ad..0ca7e8a 100644 --- a/generate-traccar-config-for-casaos/run.sh +++ b/generate-traccar-config-for-casaos/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script runs a Docker command to retrieve the traccar.xml configuration file # from a specified traccar Docker image tag and save it to a specified location on the host's system. diff --git a/generate-traccar-config/run.sh b/generate-traccar-config/run.sh index e55b6ad..0ca7e8a 100644 --- a/generate-traccar-config/run.sh +++ b/generate-traccar-config/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script runs a Docker command to retrieve the traccar.xml configuration file # from a specified traccar Docker image tag and save it to a specified location on the host's system. diff --git a/generate-unifi-network-application-init-mongo-for-casaos/run.sh b/generate-unifi-network-application-init-mongo-for-casaos/run.sh index a3d290b..9543289 100644 --- a/generate-unifi-network-application-init-mongo-for-casaos/run.sh +++ b/generate-unifi-network-application-init-mongo-for-casaos/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Ask the user for the desired config location read -p "Enter the location to save the config (default: /DATA/AppData/big-bear-unifi-network-application/db/init-mongo.js): " location diff --git a/generate-unifi-network-application-init-mongo-for-cosmos/run.sh b/generate-unifi-network-application-init-mongo-for-cosmos/run.sh index a3d290b..9543289 100644 --- a/generate-unifi-network-application-init-mongo-for-cosmos/run.sh +++ b/generate-unifi-network-application-init-mongo-for-cosmos/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Ask the user for the desired config location read -p "Enter the location to save the config (default: /DATA/AppData/big-bear-unifi-network-application/db/init-mongo.js): " location diff --git a/generate-unifi-network-application-init-mongo-sh/run.sh b/generate-unifi-network-application-init-mongo-sh/run.sh index 8e33f06..99af00f 100644 --- a/generate-unifi-network-application-init-mongo-sh/run.sh +++ b/generate-unifi-network-application-init-mongo-sh/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Ask the user for the desired config location read -p "Enter the location to save the config (default: /DATA/AppData/unifi-network-application/db/init-mongo.sh): " location diff --git a/generate-unifi-network-application-init-mongo/run.sh b/generate-unifi-network-application-init-mongo/run.sh index 54311b0..194d85d 100644 --- a/generate-unifi-network-application-init-mongo/run.sh +++ b/generate-unifi-network-application-init-mongo/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Ask the user for the desired config location read -p "Enter the location to save the config (default: /DATA/AppData/unifi-network-application/db/init-mongo.js): " location diff --git a/get-docker-logs/run.sh b/get-docker-logs/run.sh index 3029ff8..95d72a3 100644 --- a/get-docker-logs/run.sh +++ b/get-docker-logs/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Function to combine container info for display combine_container_info() { diff --git a/get-lan-ip/run.sh b/get-lan-ip/run.sh index 7b47726..ea5b93f 100644 --- a/get-lan-ip/run.sh +++ b/get-lan-ip/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script attempts to find the server's primary IP address. # It first tries using 'ifconfig' and then falls back to 'ip addr' if 'ifconfig' doesn't produce a result. diff --git a/immich-add-vector-to-db/run.sh b/immich-add-vector-to-db/run.sh index ce23ece..75200c2 100644 --- a/immich-add-vector-to-db/run.sh +++ b/immich-add-vector-to-db/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Define PostgreSQL connection parameters POSTGRES_CONTAINER="immich-postgres" diff --git a/install-docker/run.sh b/install-docker/run.sh index fc6f6bd..c14497c 100644 --- a/install-docker/run.sh +++ b/install-docker/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Function to ask for user confirmation confirm() { diff --git a/install-hacs-in-home-assistant-docker/run.sh b/install-hacs-in-home-assistant-docker/run.sh index 98be494..ae8d502 100644 --- a/install-hacs-in-home-assistant-docker/run.sh +++ b/install-hacs-in-home-assistant-docker/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Check if Docker is installed by attempting to run the 'docker' command. # If Docker is not found, print an error message and exit the script. diff --git a/install-or-update-dockge/run.sh b/install-or-update-dockge/run.sh index 7e358b3..e6e6234 100644 --- a/install-or-update-dockge/run.sh +++ b/install-or-update-dockge/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Check if the script is run as root if [[ $EUID -ne 0 ]]; then diff --git a/install-pingvin-share/install.sh b/install-pingvin-share/install.sh index f39be96..bbeee1b 100644 --- a/install-pingvin-share/install.sh +++ b/install-pingvin-share/install.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Get the IP address CURRENT_IP=$(hostname -I | awk '{print $1}') diff --git a/internal-hard-drive-disk-cache-cleaner/run.sh b/internal-hard-drive-disk-cache-cleaner/run.sh index 54e698b..cffd114 100644 --- a/internal-hard-drive-disk-cache-cleaner/run.sh +++ b/internal-hard-drive-disk-cache-cleaner/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash MESSAGE="Made by BigBearTechWorld" diff --git a/reboot-usb/run.sh b/reboot-usb/run.sh index 81eb3f8..4e1baeb 100644 --- a/reboot-usb/run.sh +++ b/reboot-usb/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Function to list available USB devices with paths and names list_usb_devices() { diff --git a/reinstall-casaos/run.sh b/reinstall-casaos/run.sh index 9fd2f4a..44a20eb 100644 --- a/reinstall-casaos/run.sh +++ b/reinstall-casaos/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Log file LOGFILE="./casaos_reinstall.log" diff --git a/reset-password-for-casaos/run.sh b/reset-password-for-casaos/run.sh index 22f7718..ca07a1c 100644 --- a/reset-password-for-casaos/run.sh +++ b/reset-password-for-casaos/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script allows the user to reset their CasaOS username and password. # Function to print headers diff --git a/runtipi/install.sh b/runtipi/install.sh index 5fbf4de..530206d 100644 --- a/runtipi/install.sh +++ b/runtipi/install.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Get the IP address CURRENT_IP=$(hostname -I | awk '{print $1}') diff --git a/setup-invoice-ninja-for-casaos-step-1/run.sh b/setup-invoice-ninja-for-casaos-step-1/run.sh index 74e0533..e2fa9ec 100644 --- a/setup-invoice-ninja-for-casaos-step-1/run.sh +++ b/setup-invoice-ninja-for-casaos-step-1/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Define a message for branding purposes MESSAGE="Made by BigBearTechWorld" diff --git a/setup-invoice-ninja-for-casaos-step-2/run.sh b/setup-invoice-ninja-for-casaos-step-2/run.sh index 7b36ed7..c4de059 100644 --- a/setup-invoice-ninja-for-casaos-step-2/run.sh +++ b/setup-invoice-ninja-for-casaos-step-2/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Define a message for branding purposes MESSAGE="Made by BigBearTechWorld" diff --git a/start-pterodactyl-panel/run.sh b/start-pterodactyl-panel/run.sh index 28b515e..2689425 100644 --- a/start-pterodactyl-panel/run.sh +++ b/start-pterodactyl-panel/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash LOG_FILE="pterodactyl_panel_log.txt" CONTAINER_ID="pterodactyl-panel" diff --git a/test-smtp-connection/run.sh b/test-smtp-connection/run.sh index 1f907f8..24150ee 100644 --- a/test-smtp-connection/run.sh +++ b/test-smtp-connection/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This script sends an email using the telnet command. # The email details can be provided interactively or default values will be used. diff --git a/toggle-website-blocking/run.sh b/toggle-website-blocking/run.sh index fecc8bc..79f739b 100755 --- a/toggle-website-blocking/run.sh +++ b/toggle-website-blocking/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Display Welcome message with links and support information echo "-------------------" diff --git a/unbound/install.sh b/unbound/install.sh index 1de2ca0..7b38e80 100644 --- a/unbound/install.sh +++ b/unbound/install.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Color variables GREEN='\033[0;32m' diff --git a/uninstall-dockge/run.sh b/uninstall-dockge/run.sh index 9190353..f4a2cb9 100644 --- a/uninstall-dockge/run.sh +++ b/uninstall-dockge/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Check if the script is run as root if [[ $EUID -ne 0 ]]; then diff --git a/update-docker-and-docker-compose/run.sh b/update-docker-and-docker-compose/run.sh index 51054e5..f17acd6 100644 --- a/update-docker-and-docker-compose/run.sh +++ b/update-docker-and-docker-compose/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Function to remove standalone Docker Compose if it exists remove_standalone_docker_compose() { diff --git a/update-etc-resolve/run.sh b/update-etc-resolve/run.sh index 1b0b7ce..728213e 100644 --- a/update-etc-resolve/run.sh +++ b/update-etc-resolve/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Define the path to the resolv.conf file resolv_conf="/etc/resolv.conf" diff --git a/update-portainer-ce/run.sh b/update-portainer-ce/run.sh index 20a9a87..8957da2 100644 --- a/update-portainer-ce/run.sh +++ b/update-portainer-ce/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Define a message for branding purposes MESSAGE="Made by BigBearTechWorld" diff --git a/update-time-and-timezone/run.sh b/update-time-and-timezone/run.sh index f1b9b5b..9adf2e1 100644 --- a/update-time-and-timezone/run.sh +++ b/update-time-and-timezone/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash echo "---------------------" echo "Big Bear Update Time and Timezone Script" diff --git a/update-ubuntu-or-debian-server/run.sh b/update-ubuntu-or-debian-server/run.sh index e3b19b9..83f3058 100644 --- a/update-ubuntu-or-debian-server/run.sh +++ b/update-ubuntu-or-debian-server/run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Define a message for branding purposes MESSAGE="Made by BigBearTechWorld"