From a87ae1a2df94a8f33174161e4625171c16a66d7c Mon Sep 17 00:00:00 2001 From: matt1432 Date: Sun, 31 Mar 2024 22:11:18 -0400 Subject: [PATCH] feat(update): add updateDocker func --- updateSha.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/updateSha.sh b/updateSha.sh index 2059580..0a3760c 100755 --- a/updateSha.sh +++ b/updateSha.sh @@ -4,6 +4,7 @@ # - jq # - mozilla-addons-to-nix # - alejandra +# - updateImages parseFetchurl() { URL="$1" @@ -18,6 +19,12 @@ parseFetchurl() { sed -i "s,sha256 = .*,sha256 = \"$HASH\";," "$FILE" } +updateDocker() { + find "$FLAKE/devices/nos/modules/arion" \ + -name "*compose.nix" \ + -exec sh -c 'updateImages $(dirname "{}")' \; +} + updateFFZ() { FILE="$FLAKE/home/firefox/addons/default.nix" URL="https://cdn.frankerfacez.com/script/frankerfacez-4.0-an+fx.xpi" @@ -67,6 +74,13 @@ updateVuetorrent() { doAll() { + updateDocker + updateFFZ + updateFirefoxAddons + updateVuetorrent +} + +doAllWithoutDocker() { updateFFZ updateFirefoxAddons updateVuetorrent @@ -74,6 +88,8 @@ doAll() { [[ "$1" == "-a" || "$1" == "--all" ]] && doAll +[[ "$1" == "-ad" || "$1" == "--all-no-docker" ]] && doAllWithoutDocker +[[ "$1" == "-d" || "$1" == "--docker" ]] && updateDocker [[ "$1" == "-f" || "$1" == "--firefox" ]] && updateFirefoxAddons [[ "$1" == "-ffz" || "$1" == "--frankerfacez" ]] && updateFFZ [[ "$1" == "-v" || "$1" == "--vuetorrent" ]] && updateVuetorrent