cd to set_env.sh so cron can find it.

This commit is contained in:
robocopAlpha 2021-07-18 03:32:24 +03:00
parent 808b31d0d1
commit 4fe4ea2a96

View file

@ -1,4 +1,15 @@
#!/usr/bin/env bash
#--- Set parameters based on Distribution
if [ "$(uname)" == "Darwin" ]; then
cd '/Users/deepankar/OneDrive - O365 Turun yliopisto/Git/Gitlab.DC/pihole_lists' || echo "can't find ~/Git/Gitlab.DC/pihole_lists"
elif [ "$(uname)" == "Linux" ]; then
cd '/home/dietpi/pihole_lists' || echo "/home/dietpi not found."
else
echo "Only MacOS and Linux are supported."
exit 1
fi
[[ -f set_env.sh ]] && source set_env.sh || { echo "set_env.sh not found"; exit 1; }
# Mounting storage