aboutsummaryrefslogtreecommitdiffstats
path: root/roles/host/templates
diff options
context:
space:
mode:
authorJan Sydänviita <jan@sydanviita.fi>2026-08-24 16:54:22 +0300
committerJan Sydänviita <jan@sydanviita.fi>2026-08-24 16:54:22 +0300
commit3289d8991fe4661d28998689fcbc5b30942f16e7 (patch)
tree33ce53eb460adb12d874a57915fa5d0e051b0edf /roles/host/templates
parentea78227f74d141a11cae1083987e1059dfeaae75 (diff)
Fixes
Diffstat (limited to 'roles/host/templates')
-rw-r--r--roles/host/templates/usr_local_bin_update_ports.sh.j23
1 files changed, 2 insertions, 1 deletions
diff --git a/roles/host/templates/usr_local_bin_update_ports.sh.j2 b/roles/host/templates/usr_local_bin_update_ports.sh.j2
index 1a512af..7f6522e 100644
--- a/roles/host/templates/usr_local_bin_update_ports.sh.j2
+++ b/roles/host/templates/usr_local_bin_update_ports.sh.j2
@@ -10,7 +10,7 @@ usage() {
BASEDIR=/usr/ports
REMOTE_QUARTERLY="https://github.com/freebsd/freebsd-ports.git"
-REMOTE_CUSTOM="https://github.com/jantuomi/freebsd-ports-custom.git"
+REMOTE_CUSTOM="http://{{ jail_ips.forge }}/freebsd-ports-custom.git"
case "$1" in
quarterly)
@@ -46,6 +46,7 @@ custom)
# Clone or update
if [ -d "${BASEDIR}/custom/.git" ]; then
echo "Updating custom ports overlay..."
+ git -C "${BASEDIR}/custom" remote set-url origin "$REMOTE_CUSTOM"
git -C "${BASEDIR}/custom" fetch origin
git -C "${BASEDIR}/custom" reset --hard origin/main
else