2022-01-14 13:49:56 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2022-01-14 14:22:57 +00:00
|
|
|
# Stomp on installed stuff to get latest dev versions on to a running machine without too much fuss
|
2022-01-14 13:49:56 +00:00
|
|
|
|
|
|
|
set -eu
|
|
|
|
|
|
|
|
HOST=${1:-pm-qemu}
|
|
|
|
SUDOPASS=${SUDOPASS:-user}
|
|
|
|
|
|
|
|
ssh ${HOST} "
|
|
|
|
cp `which rsync` root-rsync;
|
|
|
|
echo ${SUDOPASS} | sudo -S sh -c 'chown root:root root-rsync; chmod +s root-rsync';
|
|
|
|
"
|
|
|
|
rsync -avu --rsync-path="./root-rsync" \
|
|
|
|
packaging/packages/synit-config/files/. \
|
|
|
|
${HOST}:/
|
2022-01-14 14:22:57 +00:00
|
|
|
rsync -avu --rsync-path="./root-rsync" \
|
|
|
|
protocols/schema-bundle.bin \
|
|
|
|
protocols/schemas/*.prs \
|
|
|
|
${HOST}:/usr/share/synit/schemas/
|
|
|
|
ssh ${HOST} "
|
|
|
|
echo ${SUDOPASS} | sudo -S sh -c 'echo \"! <restart-service <daemon interface-monitor>>\" > /run/etc/syndicate/throck.pr';
|
|
|
|
"
|