feat(update): add updateDocker func
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
1d1856351b
commit
a87ae1a2df
1 changed files with 16 additions and 0 deletions
16
updateSha.sh
16
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
|
||||
|
|
Loading…
Reference in a new issue