mirror of
https://gitlab.com/robocopAlpha/pihole_lists.git
synced 2026-05-18 02:42:25 -07:00
cd to set_env.sh so cron can find it.
This commit is contained in:
parent
808b31d0d1
commit
4fe4ea2a96
1 changed files with 11 additions and 0 deletions
|
|
@ -1,4 +1,15 @@
|
||||||
#!/usr/bin/env bash
|
#!/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; }
|
[[ -f set_env.sh ]] && source set_env.sh || { echo "set_env.sh not found"; exit 1; }
|
||||||
|
|
||||||
# Mounting storage
|
# Mounting storage
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue