diff --git a/roles/common/files/backup_rename.sh b/roles/common/files/backup_rename.sh index 1ab6f53..098256c 100644 --- a/roles/common/files/backup_rename.sh +++ b/roles/common/files/backup_rename.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -euxo pipefail; diff --git a/roles/common/files/gpg_import_url_key.sh b/roles/common/files/gpg_import_url_key.sh index 4fcd261..18e4991 100644 --- a/roles/common/files/gpg_import_url_key.sh +++ b/roles/common/files/gpg_import_url_key.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # Usage: diff --git a/roles/common/templates/backup_files.sh b/roles/common/templates/backup_files.sh index 08013e2..0a82de6 100644 --- a/roles/common/templates/backup_files.sh +++ b/roles/common/templates/backup_files.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -euxo pipefail; diff --git a/roles/common/templates/backup_mysql_database.sh b/roles/common/templates/backup_mysql_database.sh index ea02149..92ec378 100644 --- a/roles/common/templates/backup_mysql_database.sh +++ b/roles/common/templates/backup_mysql_database.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -euxo pipefail; diff --git a/roles/git_auto_update/templates/update.sh b/roles/git_auto_update/templates/update.sh index 5f4df57..16f794c 100644 --- a/roles/git_auto_update/templates/update.sh +++ b/roles/git_auto_update/templates/update.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash readonly REPO={{ repo | quote }}; readonly DEST={{ dest | quote }}; diff --git a/roles/misc/backup_files/templates/backup.sh b/roles/misc/backup_files/templates/backup.sh index 759d879..e7545dd 100644 --- a/roles/misc/backup_files/templates/backup.sh +++ b/roles/misc/backup_files/templates/backup.sh @@ -1,2 +1,2 @@ -#!/bin/sh +#!/usr/bin/env sh {{ global_helper_directory }}/backup_files.sh {{ backup_directory | quote }} {{ domain | quote }} diff --git a/roles/misc/ip_discover/templates/discover.sh b/roles/misc/ip_discover/templates/discover.sh index acf37d9..c499671 100644 --- a/roles/misc/ip_discover/templates/discover.sh +++ b/roles/misc/ip_discover/templates/discover.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh for v in 4 6; do curl --silent --show-error --ipv$v {{ discover_server_url | quote }}; diff --git a/roles/mysql/backup_database/templates/backup.sh b/roles/mysql/backup_database/templates/backup.sh index 3ae6079..16c1297 100644 --- a/roles/mysql/backup_database/templates/backup.sh +++ b/roles/mysql/backup_database/templates/backup.sh @@ -1,2 +1,2 @@ -#!/bin/sh +#!/usr/bin/env sh {{ global_helper_directory }}/backup_mysql_database.sh {{ database_name | quote }} diff --git a/roles/server/gitea/templates/update_gitea.sh b/roles/server/gitea/templates/update_gitea.sh index 4930f69..cd09d32 100644 --- a/roles/server/gitea/templates/update_gitea.sh +++ b/roles/server/gitea/templates/update_gitea.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash readonly CHECKSUM_TYPE="sha256"; readonly CHECKSUM_APP="${CHECKSUM_TYPE}sum"; diff --git a/roles/server/minecraft/templates/control.sh b/roles/server/minecraft/templates/control.sh index 64a6262..f268c21 100644 --- a/roles/server/minecraft/templates/control.sh +++ b/roles/server/minecraft/templates/control.sh @@ -1,2 +1,2 @@ -#!/bin/sh +#!/usr/bin/env sh {{ mcrcon_directory | quote }}/mcrcon -H localhost -P {{ minecraft_rcon_port | quote }} -p {{ minecraft_rcon_password | quote }} "$@" diff --git a/roles/server/minecraft/templates/launch.sh b/roles/server/minecraft/templates/launch.sh index 10b96f9..f509602 100644 --- a/roles/server/minecraft/templates/launch.sh +++ b/roles/server/minecraft/templates/launch.sh @@ -1,2 +1,2 @@ -#!/bin/sh +#!/usr/bin/env sh /usr/lib/jvm/java-{{ java_version }}-openjdk-amd64/bin/java -Xms{{ minecraft_start_ram | quote }} -Xmx{{ minecraft_max_ram | quote }} -jar {{ installation_directory | quote }}/server.jar nogui diff --git a/roles/server/nextcloud/templates/install_nextcloud.sh b/roles/server/nextcloud/templates/install_nextcloud.sh index a10f6e4..2233083 100755 --- a/roles/server/nextcloud/templates/install_nextcloud.sh +++ b/roles/server/nextcloud/templates/install_nextcloud.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash readonly CHECKSUM_TYPE="sha256"; readonly CHECKSUM_APP="${CHECKSUM_TYPE}sum"; diff --git a/roles/wireguard/application/templates/down.sh b/roles/wireguard/application/templates/down.sh index 22d9029..f670110 100644 --- a/roles/wireguard/application/templates/down.sh +++ b/roles/wireguard/application/templates/down.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -euxo pipefail; diff --git a/roles/wireguard/application/templates/up.sh b/roles/wireguard/application/templates/up.sh index 1339e99..760bc94 100644 --- a/roles/wireguard/application/templates/up.sh +++ b/roles/wireguard/application/templates/up.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -euxo pipefail;