NixOS-Config/hosts/modules/scripts/registry.sh

13 lines
243 B
Bash

#!/usr/bin/env bash
set -ex
if [[ ! -e /opt/registry/scripts/testbed_cron.sh ]]; then
mkdir -p /opt
cd /opt
git clone https://git.nasp.fit/NASP/registry.git
fi
cd /opt/registry
git pull
bash /opt/registry/scripts/testbed_cron.sh