Added script to check OS. Modified backup logic to look for mount dir based on OS

This commit is contained in:
Tracey Clark 2020-03-14 21:02:44 -05:00
commit c8aff9beec
2 changed files with 25 additions and 1 deletions

6
check_os.sh Executable file
View file

@ -0,0 +1,6 @@
#!/bin/bash
# Check what OS we're on
OS=`awk -F = '/^NAME/{print $2}' /etc/os-release`
echo "OS found in /etc/os-release is $OS"
export OS="$OS"