summaryrefslogtreecommitdiffstats
path: root/Bash
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2016-06-08 18:58:29 +0200
committerThomas Lange <code@nerdmind.de>2016-06-08 18:58:29 +0200
commit406a7b37b5b3f7079aebaf445b09883c5be7c62d (patch)
tree32c90364ee49c525d5522db8c76b2f21108c13ac /Bash
parent825db1214bac1b21d07e1afb8c4319a92a5387c1 (diff)
downloadsnippets-406a7b37b5b3f7079aebaf445b09883c5be7c62d.tar.gz
snippets-406a7b37b5b3f7079aebaf445b09883c5be7c62d.tar.xz
snippets-406a7b37b5b3f7079aebaf445b09883c5be7c62d.zip
Multiple updates
Diffstat (limited to 'Bash')
-rwxr-xr-xBash/iptables-whiteblacklisting.sh8
-rwxr-xr-xBash/mysql-database-backup.sh2
2 files changed, 5 insertions, 5 deletions
diff --git a/Bash/iptables-whiteblacklisting.sh b/Bash/iptables-whiteblacklisting.sh
index 3802bf0..769eaf5 100755
--- a/Bash/iptables-whiteblacklisting.sh
+++ b/Bash/iptables-whiteblacklisting.sh
@@ -46,14 +46,14 @@ BLACKLISTING=()
#===============================================================================
# Define IPTables commands for IPv4 and IPv6
#===============================================================================
-IPTABLES_V4=`which iptables`
-IPTABLES_V6=`which ip6tables`
+IPTABLES_V4=$(which iptables)
+IPTABLES_V6=$(which ip6tables)
#===============================================================================
# Define IPTables-save commands for IPv4 and IPv6
#===============================================================================
-IPTABLES_SAVE_V4=`which iptables-save`
-IPTABLES_SAVE_V6=`which ip6tables-save`
+IPTABLES_SAVE_V4=$(which iptables-save)
+IPTABLES_SAVE_V6=$(which ip6tables-save)
#===============================================================================
# Wrapper function for IPTables with IPv4 and IPv6
diff --git a/Bash/mysql-database-backup.sh b/Bash/mysql-database-backup.sh
index 660c80d..610838a 100755
--- a/Bash/mysql-database-backup.sh
+++ b/Bash/mysql-database-backup.sh
@@ -37,7 +37,7 @@ fi
#===============================================================================
# Fetch all database names from local MySQL server
#===============================================================================
-DATABASES=`mysql --user="${DATABASE_USERNAME}" --password="${DATABASE_PASSWORD}" --execute="SHOW DATABASES;" | grep -Ev "${DATABASE_EXCLUDED}"`
+DATABASES=$(mysql --user="${DATABASE_USERNAME}" --password="${DATABASE_PASSWORD}" --execute="SHOW DATABASES;" | grep -Ev "${DATABASE_EXCLUDED}")
#===============================================================================
# Loop through all database names and create compressed database backup