summaryrefslogtreecommitdiffstats
path: root/Bash
diff options
context:
space:
mode:
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