b86d6b3f5410cac5071e4fc04cf83a4f981e04d8
[libguestfs-talks.git] / 2021-pipelines / run
1 #!/bin/bash -
2 # Run the talk.
3
4 set -e
5
6 # Avoid GNOME keyring stupidity
7 export GNOME_KEYRING_CONTROL=
8 export GNOME_KEYRING_PID=
9
10 # No proxy.
11 unset http_proxy
12 unset https_proxy
13 unset ftp_proxy
14
15 # Clean up after previous run.
16 talkdir=$PWD ./restore
17
18 # Check environment.
19 if [ ! -d /mnt/scratch/pipes ]; then
20     echo "Error: no remote server."
21     exit 1
22 fi
23 if [ ! -f /mnt/scratch/pipes/fedora-33.img ]; then
24     echo "Error: no remote file."
25     exit 1
26 fi
27
28 # Precreate any files necessary.
29 if [ ! -f fedora-33.img ]; then
30     virt-builder fedora-33
31 fi
32
33 # Run techtalk.
34 #techtalk-pse "$@"
35 ~/d/techtalk-pse/techtalk-pse "$@"