Skip to content

Commit

Permalink
Add support to manually disable easybackup
Browse files Browse the repository at this point in the history
  • Loading branch information
PATROMO committed Sep 6, 2023
1 parent 70e3dbb commit 5a383fa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ func init() {
func main() {
flag.Parse()

if _, err := os.Stat(filepath.Join("/", "var", "tmp", "easybackup.disabled")); err == nil {
fmt.Println("easybackup is manually disabled.")
return
}

lock, err := lockfile.New(filepath.Join(os.TempDir(), "easybackup.pid"))
if err != nil {
panic(err)
Expand Down

0 comments on commit 5a383fa

Please sign in to comment.