fix: proper user detection on prod

This commit is contained in:
Barrett Ruth 2025-05-31 18:06:29 -05:00
parent 96d10fb7c6
commit 462ce9ddc2

2
app.py
View file

@ -15,7 +15,7 @@ app = Flask(__name__, static_folder=None)
GIT_REPO_PATH = str(Path.home() / "dev")
GIST_PATH = str(Path.home() / "gists")
EXPORT_MARKER = "readme.md"
if getpass.getuser() == "ec2-user":
if getpass.getuser() == "apache":
GIT_REPO_PATH = "/srv/git"
GIST_PATH = "/srv/gists"
EXPORT_MARKER = "git-daemon-export-ok"