Skip to content

Commit

Permalink
Merge pull request srvrco#773 from christopherkobayashi/master
Browse files Browse the repository at this point in the history
Consistently use /usr/bin/env instead of /bin/bash for portability.
  • Loading branch information
timkimber committed Sep 27, 2022
2 parents a6cdace + b74623a commit 40e5084
Show file tree
Hide file tree
Showing 25 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion dns_scripts/dns_add_del_aliyun.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#https://blog.aymar.cn
#https://protocol.aymar.cn
PROGNAME=${0##*/}
Expand Down
2 changes: 1 addition & 1 deletion dns_scripts/dns_add_dnspod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# need to add your email address and key to dnspod below
key=${DNSPOD_API_KEY:-}
Expand Down
2 changes: 1 addition & 1 deletion dns_scripts/dns_add_duckdns
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# need to add your Token for duckdns below
token=${DUCKDNS_TOKEN:-}
Expand Down
2 changes: 1 addition & 1 deletion dns_scripts/dns_add_godaddy
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Copyright (C) 2017, 2018 Timothe Litt litt at acm _dot org

Expand Down
2 changes: 1 addition & 1 deletion dns_scripts/dns_add_ionos
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/bash
#!/usr/usr/bin/env bash
#
# Called as
#
Expand Down
2 changes: 1 addition & 1 deletion dns_scripts/dns_add_joker
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

FULLDOMAIN=$1
TOKEN=$2
Expand Down
2 changes: 1 addition & 1 deletion dns_scripts/dns_add_linode
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

fulldomain="${1}"
token="${2}"
Expand Down
2 changes: 1 addition & 1 deletion dns_scripts/dns_add_manual
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

echo "In the DNS, a new TXT record needs to be created for;"
echo "_acme-challenge.${1}"
Expand Down
2 changes: 1 addition & 1 deletion dns_scripts/dns_add_nsupdate
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# example of script to add token to local dns using nsupdate

Expand Down
2 changes: 1 addition & 1 deletion dns_scripts/dns_add_ovh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

domains=($(echo "$1"|sed -e 's/^\(\([a-zA-Z0-9.-]*\?\)\.\)*\([a-zA-Z0-9-]\+\.[a-zA-Z-]\+\)$/"\1" _acme-challenge.\2 \3/g'))
challenge="$2"
Expand Down
2 changes: 1 addition & 1 deletion dns_scripts/dns_add_pdns-mysql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# You must either have a suitable ~/.my.cnf containing a user / pass
# for your mysql / mariadb database, OR you must uncomment the next line
Expand Down
2 changes: 1 addition & 1 deletion dns_scripts/dns_add_windows_dns_server
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Windows DNS server using powershell - dnscmd is going to be deprecated
# Using Windows Sublinux for executing windows commands
Expand Down
2 changes: 1 addition & 1 deletion dns_scripts/dns_del_dnspod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# need to add your email address and key to dnspod below
key=${DNSPOD_API_KEY:-}
Expand Down
2 changes: 1 addition & 1 deletion dns_scripts/dns_del_duckdns
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# need to add your Token for duckdns below
token=${DUCKDNS_TOKEN:-}
Expand Down
2 changes: 1 addition & 1 deletion dns_scripts/dns_del_godaddy
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Copyright (C) 2017,2018 Timothe Litt litt at acm _dot org

Expand Down
2 changes: 1 addition & 1 deletion dns_scripts/dns_del_ionos
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/bash
#!/usr/usr/bin/env bash
#
# Called as
#
Expand Down
2 changes: 1 addition & 1 deletion dns_scripts/dns_del_joker
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

FULLDOMAIN=$1
TOKEN=$2
Expand Down
2 changes: 1 addition & 1 deletion dns_scripts/dns_del_linode
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

fulldomain="${1}"
api_url="https://api.linode.com/api/"
Expand Down
2 changes: 1 addition & 1 deletion dns_scripts/dns_del_manual
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

echo "In the DNS, the following DNS record should be deleted ;"
echo "_acme-challenge.${1}"
Expand Down
2 changes: 1 addition & 1 deletion dns_scripts/dns_del_nsupdate
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# example of script to remove token from local dns using nsupdate

Expand Down
2 changes: 1 addition & 1 deletion dns_scripts/dns_del_ovh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

domains=($(echo "$1"|sed -e 's/^\(\([a-zA-Z0-9.-]*\?\)\.\)*\([a-zA-Z0-9-]\+\.[a-zA-Z-]\+\)$/"\1" _acme-challenge.\2 \3/g'))
#challenge="$2"
Expand Down
2 changes: 1 addition & 1 deletion dns_scripts/dns_del_pdns-mysql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# You must either have a suitable ~/.my.cnf containing a user / pass
# for your mysql / mariadb database, OR you must uncomment the next line
Expand Down
2 changes: 1 addition & 1 deletion dns_scripts/dns_del_windows_dns_server
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Windows DNS server using powershell - dnscmd is going to be deprecated
# Using Windows Sublinux for executing windows commands
Expand Down
2 changes: 1 addition & 1 deletion dns_scripts/dns_godaddy
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Copyright (C) 2017,2018 Timothe Litt litt at acm _dot org

Expand Down
2 changes: 1 addition & 1 deletion other_scripts/cpanel_cert_upload
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# a simple script for use on shared cpanel server to automatically add the
# the certificates to cpanel if the uapi function is available
Expand Down

0 comments on commit 40e5084

Please sign in to comment.