forked from rocky-linux/OpenQA-Fedora-Installation
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall-openqa-post.sh
More file actions
executable file
·31 lines (24 loc) · 962 Bytes
/
install-openqa-post.sh
File metadata and controls
executable file
·31 lines (24 loc) · 962 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
set -e
if [[ ! -d /var/lib/openqa/tests/fedora ]]; then
cd /var/lib/openqa/tests/
sudo git clone https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git fedora
sudo chown -R geekotest:geekotest fedora
cd fedora
sudo ./fifloader.py -l -c templates.fif.json templates-updates.fif.json
fi
if [[ ! -d /var/lib/openqa/factory/hdd/fixed ]]; then
sudo git clone https://pagure.io/fedora-qa/createhdds.git /root/createhdds
sudo mkdir -p /var/lib/openqa/factory/hdd/fixed
sudo mkdir -p /var/lib/openqa/factory/iso
cd /var/lib/openqa/factory/hdd/fixed
#sudo /root/createhdds/createhdds.py all
find . -exec sudo chown geekotest '{}' \;
fi
echo Now clone a job from Fedora Project :-\)
sudo openqa-clone-job --from https://openqa.fedoraproject.org/tests/943196
systemctl is-active openqa-worker@1 &> /dev/null
if [[ $? -eq 1 ]]; then
sudo systemctl enable --now openqa-worker@1
fi
echo Scheduled job should be started by worker!