From 406a7b37b5b3f7079aebaf445b09883c5be7c62d Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Wed, 8 Jun 2016 18:58:29 +0200 Subject: Multiple updates --- Bash/iptables-whiteblacklisting.sh | 8 ++++---- Bash/mysql-database-backup.sh | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'Bash') 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 -- cgit v1.2.3