diff --git a/assets/gpg_batch.sh b/assets/gpg_batch.sh index ff36b34..6b9c471 100755 --- a/assets/gpg_batch.sh +++ b/assets/gpg_batch.sh @@ -1,7 +1,8 @@ # Copyright 2016 Bryan J. Hong # Licensed under the Apache License, Version 2.0 -#! /bin/bash +#! /usr/bin/env bash + cat << EOF > /opt/gpg_batch %echo Generating a GPG key, might take a while Key-Type: RSA diff --git a/assets/nginx.conf.sh b/assets/nginx.conf.sh index 29701aa..e5926c2 100755 --- a/assets/nginx.conf.sh +++ b/assets/nginx.conf.sh @@ -1,7 +1,7 @@ # Copyright 2016 Bryan J. Hong # Licensed under the Apache License, Version 2.0 -#! /bin/bash +#! /usr/bin/env bash cat << EOF > /etc/nginx/conf.d/default.conf server_names_hash_bucket_size 64; diff --git a/assets/startup.sh b/assets/startup.sh index 8afef99..2a3efa2 100755 --- a/assets/startup.sh +++ b/assets/startup.sh @@ -2,7 +2,7 @@ # Copyright 2016 Bryan J. Hong # Licensed under the Apache License, Version 2.0 -#! /bin/bash +#! /usr/bin/env bash # If the repository GPG keypair doesn't exist, create it. if [[ ! -f /opt/aptly/aptly.sec ]] || [[ ! -f /opt/aptly/aptly.pub ]]; then diff --git a/assets/update_mirror_debian.sh b/assets/update_mirror_debian.sh index f58bf0f..c782725 100755 --- a/assets/update_mirror_debian.sh +++ b/assets/update_mirror_debian.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash set -e # Automate the initial creation and update of a Debian package mirror in aptly diff --git a/assets/update_mirror_ubuntu.sh b/assets/update_mirror_ubuntu.sh index f05052d..f2faa84 100755 --- a/assets/update_mirror_ubuntu.sh +++ b/assets/update_mirror_ubuntu.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash set -e # Automate the initial creation and update of an Ubuntu package mirror in aptly