From: Lady Date: Fri, 15 Dec 2023 04:30:38 +0000 (-0500) Subject: Configure for X-Git-Url: https://git.ladys.computer/Status/commitdiff_plain/78d46700499c5245773cb0ce09f304ffd17fdd1b?hp=d1f61cae690e87cf2a64747b788eb1d9285f17f8 Configure for --- diff --git a/Makefile b/Makefile index 6e6d778..aeb91ac 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,7 @@ -USERNAME := USERNAME -DOMAIN := DOMAIN -GIT_REPOSITORY := /home/$(USERNAME)/Status.git - nothing: @echo 'Type `make remote` to update the remote post-receive script.' remote: - scp post-receive $(USERNAME)@$(DOMAIN):$(GIT_REPOSITORY)/hooks/post-receive + scp post-receive computer:/srv/git/Status/hooks/post-receive .PHONY: nothing remote ; diff --git a/post-receive b/post-receive index b07ad47..286b34e 100755 --- a/post-receive +++ b/post-receive @@ -4,7 +4,7 @@ from glob import iglob from itertools import starmap import json from os import mkdir -from os.path import exists +from os.path import exists, expanduser from pathlib import Path import re from shutil import copy2, rmtree @@ -14,10 +14,10 @@ from warnings import warn from xml.dom import XHTML_NAMESPACE from xml.dom.minidom import getDOMImplementation, parseString -GIT_DIRECTORY = "/home/USERNAME/Status.git" -BUILD_DIRECTORY = "/home/USERNAME/status.site.example/.build" -PUBLIC_DIRECTORY = "/home/USERNAME/status.site.example/public" -PUBLIC_URL = "https://status.site.example" +GIT_DIRECTORY = "/srv/git/Status" +BUILD_DIRECTORY = expanduser("~/lady/status/.build") +PUBLIC_DIRECTORY = expanduser("~/lady/status/public") +PUBLIC_URL = "https://status.ladys.computer" LANG = "en" LIVE_BRANCH = "live"