Adding initial scaffolding to rename the repository

Signed-off-by: Kris Nóva <kris@nivenly.com>
This commit is contained in:
Kris Nóva 2021-01-30 22:41:23 -08:00
parent c7472582a7
commit 0f880ac1fa
46 changed files with 5707 additions and 674 deletions

View file

@ -0,0 +1,25 @@
package main
import (
"github.com/kris-nova/logger"
"os"
)
func halt(code int, msg string){
logger.Critical(msg)
os.Exit(code)
}
func main() {
user := os.Getenv("PHOTOPRISM_USER")
if user == "" {
halt(1, "Missing PHOTOPRISM_USER")
}
pass := os.Getenv("PHOTOPRISM_PASS")
if pass == "" {
halt(2, 'Missing PHOTOPRISM_PASS')
}
}