+#
+# Check if the commands for restoring the database are available
+#
+if [ "${databaseSystem,,}" = "mysql" ] || [ "${databaseSystem,,}" = "mariadb" ]; then
+ if ! [ -x "$(command -v mysql)" ]; then
+ errorecho "ERROR: MySQL/MariaDB not installed (command mysql not found)."
+ errorecho "ERROR: No restore of database possible!"
+ errorecho "Cancel restore"
+ exit 1
+ fi
+elif [ "${databaseSystem,,}" = "postgresql" ]; then
+ if ! [ -x "$(command -v psql)" ]; then
+ errorecho "ERROR: PostgreSQL not installed (command psql not found)."
+ errorecho "ERROR: No restore of database possible!"
+ errorecho "Cancel restore"
+ exit 1
+ fi
+fi
+