Add euo to scripts
This commit is contained in:
parent
8c47dffb01
commit
358d7ef176
5 changed files with 7 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
set -euo pipefail
|
||||||
FILTER_PATH='/var/spool/filter'
|
FILTER_PATH='/var/spool/filter'
|
||||||
while read -r FOLDER
|
while read -r FOLDER
|
||||||
do
|
do
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
set -euo pipefail
|
||||||
# http://www.postfix.org/FILTER_README.html
|
# http://www.postfix.org/FILTER_README.html
|
||||||
# Clean up when done or when aborting.
|
# Clean up when done or when aborting.
|
||||||
finished=false
|
finished=false
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
set -euo pipefail
|
||||||
# shellcheck disable=SC1091
|
# shellcheck disable=SC1091
|
||||||
[ -r /var/lib/from_repos/ad_scripts/shared_functions.sh ] && . /var/lib/from_repos/ad_scripts/shared_functions.sh
|
[ -r /var/lib/from_repos/ad_scripts/shared_functions.sh ] && . /var/lib/from_repos/ad_scripts/shared_functions.sh
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
set -euo pipefail
|
||||||
if [[ "$1" == "" ]]
|
if [[ "$1" == "" ]]
|
||||||
then
|
then
|
||||||
echo "Indicate a string to search in the postqueue."
|
echo "Indicate a string to search in the postqueue."
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
set -euo pipefail
|
||||||
declare clients=( hiljainen.susurrando.com )
|
declare clients=( hiljainen.susurrando.com )
|
||||||
|
|
||||||
rm /etc/postfix/allowed_clients
|
rm /etc/postfix/allowed_clients
|
||||||
|
|
Loading…
Reference in a new issue