Skip to content
Snippets Groups Projects
Commit c16dc66b authored by gobonja's avatar gobonja
Browse files

Add option to temporary skip autosnap by setting environment variable

parent ed5aed87
Branches master
No related tags found
1 merge request!1Merge dev into master
#!/bin/bash
#author: gobonja
if [ $(findmnt / -no fstype) == "overlay" ] ; then
echo "==> skipping timeshift-autosnap because system is booted in Live CD mode..."; exit 0;
fi
[ $(findmnt / -no fstype) == "overlay" ] && { printf "==> skipping timeshift-autosnap because system is booted in Live CD mode..."; exit 0; }
[[ -v SKIP_AUTOSNAP ]] && { printf "==> skipping timeshift-autosnap due SKIP_AUTOSNAP environment variable being set."; exit 0; }
readonly CONF_FILE=/etc/timeshift-autosnap.conf
readonly SNAPSHOTS_TO_DELETE=$(mktemp -u --tmpdir ${0##*/}.XXXXXXXX)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment