diff --git a/binhost.sh b/binhost.sh index fff5de2..5de8b8a 100755 --- a/binhost.sh +++ b/binhost.sh @@ -66,7 +66,7 @@ VOLUMES=( -v distfiles:/var/cache/distfiles -v binpkgs:/var/cache/binpkgs -v "$CTX/etc/portage/make.conf:/etc/portage/make.conf" - -v "$CTX/var/lib/portage/world:/var/lib/portage/world" + -v "$CTX/var/lib/portage:/tmp/incoming_world:ro" ) # add config dirs to volumes @@ -84,6 +84,8 @@ podman run --rm -i \ set -e source /etc/profile +cp /tmp/incoming_world/world /var/lib/portage/world + echo "> Syncing tree..." emerge-webrsync -q diff --git a/trigger.sh b/trigger.sh new file mode 100644 index 0000000..002b982 --- /dev/null +++ b/trigger.sh @@ -0,0 +1,13 @@ +#!/bin/bash +set -euo pipefail + +SERVER_USER="mira" +SERVER_IP="192.168.102.148" +REMOTE_DIR="$HOME/gentoo-pill" + +echo "Connecting to ${SERVER_USER}@${SERVER_IP}..." + +ssh -A -t "${SERVER_USER}@${SERVER_IP}" \ + "bash -c 'cd ${REMOTE_DIR} && ./binhost.sh'" + +echo "Trigger complete"