rockylinux-ostree-config/build.sh

13 lines
403 B
Bash
Raw Normal View History

2022-06-06 10:11:51 +00:00
#!/bin/bash
Error () {
echo "Oops, something did not work"
exit 101
}
sudo rm -rf ./build || Error
mkdir -p ./build/{repo,cache} || Error
ostree --repo=build/repo init --mode=archive || Error
2022-06-06 10:35:33 +00:00
sudo rpm-ostree compoe tree --unified-core --cachedir=./build/cache --repo=./build/repo config/manifest.yaml || Error
2022-06-06 10:11:51 +00:00
sudo rsync -av --delete ./build/repo root@192.168.122.89:/var/www/html/ostree/ || Error