2
0
Fork 0
main
Ducky 2023-08-15 17:01:53 +01:00
parent e598871714
commit b22a8c6397
3 changed files with 20 additions and 11 deletions

1
.gitignore vendored
View File

@ -46,6 +46,7 @@
!/usr/local/bin/sh.zio.backup
!/usr/local/bin/sh.zio.install-package
!/usr/local/bin/sh.zio.pod-exec
!/usr/local/bin/sh.zio.update-rootfs
!/usr/local/bin/zio-backup
!/usr/local/bin/zio-libvirt-port-forward
!/usr/local/bin/zio-update-caddy

View File

@ -0,0 +1,19 @@
#!/usr/bin/env bash
if [[ "$(realpath "$(dirname "$(realpath -s "$0")")/../../../")" == "/" ]]; then
. /usr/local/libexec/zio/helpers/bash.sh
else
. "$(dirname "$(realpath -s "$0")")/../libexec/zio/helpers/bash.sh"
fi
# TODO: Check if we're actually using the rootfs git
test_root
orig_dir="$(pwd)"
cd /
git reset --hard origin main
git pull
cd $orig_dir

View File

@ -1,11 +0,0 @@
#!/bin/bash
# TODO: Check if we're actually using the rootfs git
orig_dir="$(pwd)"
cd /
git reset --hard
git pull
cd $orig_dir