various
parent
e598871714
commit
b22a8c6397
|
@ -46,6 +46,7 @@
|
||||||
!/usr/local/bin/sh.zio.backup
|
!/usr/local/bin/sh.zio.backup
|
||||||
!/usr/local/bin/sh.zio.install-package
|
!/usr/local/bin/sh.zio.install-package
|
||||||
!/usr/local/bin/sh.zio.pod-exec
|
!/usr/local/bin/sh.zio.pod-exec
|
||||||
|
!/usr/local/bin/sh.zio.update-rootfs
|
||||||
!/usr/local/bin/zio-backup
|
!/usr/local/bin/zio-backup
|
||||||
!/usr/local/bin/zio-libvirt-port-forward
|
!/usr/local/bin/zio-libvirt-port-forward
|
||||||
!/usr/local/bin/zio-update-caddy
|
!/usr/local/bin/zio-update-caddy
|
||||||
|
|
|
@ -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
|
|
@ -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
|
|
Loading…
Reference in New Issue