Skip to content
Snippets Groups Projects
Commit c3df53e1 authored by Hannes Braun's avatar Hannes Braun :upside_down:
Browse files

Added check to installation script, if JSON parser is installed. Updated README.md.

parent e0a61148
No related branches found
No related tags found
No related merge requests found
...@@ -5,6 +5,17 @@ It comes with a built-in mechanism to check and delete old backups. ...@@ -5,6 +5,17 @@ It comes with a built-in mechanism to check and delete old backups.
## Installing / Getting started ## Installing / Getting started
### Requirements
#### OS
This project is developed and tested under Debian 11 Bullseye.
#### JSON Parser
The script is loading its needed configuration from a JSON file. Therefor a JSON parser is needed.
In this project, the parser 'jq' is being used. It can be installed via the default Debian repository.
Clone the repository and execute the installation script. Clone the repository and execute the installation script.
```shell ```shell
......
...@@ -10,6 +10,12 @@ else ...@@ -10,6 +10,12 @@ else
cd /opt/sql-backup cd /opt/sql-backup
fi fi
# Check if jqis installed
if [ -z $(which apt) ]; then
echo "ERROR: JSON parser 'jq' not found, but necessary. Make sure that 'jq' is installed correctly."
exit 1
fi
# Update repository # Update repository
bash update.sh bash update.sh
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment