#!/usr/bin/env bash
#
# updatenetflux - pull and restart containers on remote server

set -e

remotehost=netflux

ssh $remotehost 'cd dev/netflux-internals && git pull --rebase && docker-compose down -v && docker-compose pull && docker-compose up -d --force-recreate'

# invidious requires a local build, managed by a separate script.
updateinvidious