Added script to check OS. Modified backup logic to look for mount dir based on OS
This commit is contained in:
parent
9685dfafbb
commit
c8aff9beec
2 changed files with 25 additions and 1 deletions
6
check_os.sh
Executable file
6
check_os.sh
Executable 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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue