Outright remove lockfile.

This commit is contained in:
Gabriel Simmer 2022-03-19 13:30:42 +00:00
parent 59a3df81d6
commit fd4cb338cc
2 changed files with 3 additions and 3 deletions

View file

@ -40,7 +40,7 @@ func Setup() {
go GenerateRss() go GenerateRss()
// Create "first run" lockfile when function exits // Create "first run" lockfile when function exits
defer LockFile() // defer LockFile()
// Create users SQLite3 file // Create users SQLite3 file
CreateDatabase() CreateDatabase()
@ -126,7 +126,7 @@ func CreateDatabase() {
} }
func LockFile() { func LockFile() {
lock, err := os.Create("assets/.lock") lock, err := os.Create(".lock")
if err != nil { if err != nil {
fmt.Println("Error: %v", err) fmt.Println("Error: %v", err)
} }

View file

@ -20,7 +20,7 @@ func main() {
// Check if this is the first time Pogo has been run // Check if this is the first time Pogo has been run
// with a lockfile // with a lockfile
if _, err := os.Stat("assets/.lock"); err != nil { if _, err := os.Stat("assets"); os.IsNotExist(err) {
fmt.Println("This looks like your first time running Pogo, give me a second to set myself up.") fmt.Println("This looks like your first time running Pogo, give me a second to set myself up.")
Setup() Setup()
} }