mirror of
https://github.com/bashclub/miyagi-pbs-zfs.git
synced 2025-12-06 06:28:43 +00:00
Update pbs-zfs-daily.sh
Bugfixes
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
|
PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
|
||||||
|
|
||||||
echo "Sleeping for one Minute to be interruped if necessary"
|
echo "Sleeping for one Minute to be interruped if necessary"
|
||||||
echo sleep 60
|
sleep 60
|
||||||
|
|
||||||
#Requirements for Myiagi ultimate Backup found in README! Always use a Config File!
|
#Requirements for Myiagi ultimate Backup found in README! Always use a Config File!
|
||||||
|
|
||||||
@@ -85,10 +85,17 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
if [[ "$BACKUPSERVER" == "no" ]]; then
|
if [[ "$BACKUPSERVER" == "no" ]]; then
|
||||||
echo No Backup configured in this Run && exit
|
echo "No Backup configured in this Run"
|
||||||
[[ "$SHUTDOWN" == "yes" ]] && shutdown now
|
if [[ "$SHUTDOWN" == "yes" ]]; then
|
||||||
|
echo "Shutting down now..."
|
||||||
|
shutdown now
|
||||||
|
else
|
||||||
|
echo "Shutdown not configured. Exiting script."
|
||||||
|
fi
|
||||||
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
sleep 5
|
sleep 5
|
||||||
|
|
||||||
if [[ "$BACKUPSERVER" == "yes" ]]; then
|
if [[ "$BACKUPSERVER" == "yes" ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user