blueprints.git

commit 8461dc5d76e3ee3f929291dca4ac4da668cabd58

Author: Adam <git@apiote.xyz>

fix kosync go mod

 kosync/build.sh | 6 ++++--


diff --git a/kosync/build.sh b/kosync/build.sh
index 1d87297468721d1b597b0e5785b7224014b5efc0..72aded66b3852aaa00da154f14bea9f53ec75171 100755
--- a/kosync/build.sh
+++ b/kosync/build.sh
@@ -6,11 +6,13 @@ item="$1"
 
 git clone https://github.com/yeeac/kosyncsrv
 cd kosyncsrv
+go mod init github.com/yeeac/kosyncsrv
+go mod tidy
 go build
 commit=$(git show --pretty=oneline --abbrev-commit --name-only | head -n1 | cut -d ' ' -f 1)
 timestamp=$(date '+%Y%m%dT%H%M')
-scp kosync deploy@host.containers.internal:toys/goose/${item}/kosync_${timestamp}_${commit}
-ssh deploy@host.containers.internal "cp ~/toys/goose/${item}/kosync_${timestamp}_${commit} /tmp/kosync"
+scp kosyncsrv deploy@host.containers.internal:toys/kosync/${item}/kosync_${timestamp}_${commit}
+ssh deploy@host.containers.internal "cp ~/toys/kosync/${item}/kosync_${timestamp}_${commit} /tmp/kosync"
 ssh deploy@host.containers.internal "chmod 755 /tmp/kosync"
 ssh deploy@host.containers.internal "doas cp /tmp/kosync /usr/bin/kosync"
 ssh deploy@host.containers.internal "doas -u www doas /etc/init.d/kosync restart"