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
|
# - jq
|
||||||
# - mozilla-addons-to-nix
|
# - mozilla-addons-to-nix
|
||||||
# - alejandra
|
# - alejandra
|
||||||
|
# - updateImages
|
||||||
|
|
||||||
parseFetchurl() {
|
parseFetchurl() {
|
||||||
URL="$1"
|
URL="$1"
|
||||||
|
@ -18,6 +19,12 @@ parseFetchurl() {
|
||||||
sed -i "s,sha256 = .*,sha256 = \"$HASH\";," "$FILE"
|
sed -i "s,sha256 = .*,sha256 = \"$HASH\";," "$FILE"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
updateDocker() {
|
||||||
|
find "$FLAKE/devices/nos/modules/arion" \
|
||||||
|
-name "*compose.nix" \
|
||||||
|
-exec sh -c 'updateImages $(dirname "{}")' \;
|
||||||
|
}
|
||||||
|
|
||||||
updateFFZ() {
|
updateFFZ() {
|
||||||
FILE="$FLAKE/home/firefox/addons/default.nix"
|
FILE="$FLAKE/home/firefox/addons/default.nix"
|
||||||
URL="https://cdn.frankerfacez.com/script/frankerfacez-4.0-an+fx.xpi"
|
URL="https://cdn.frankerfacez.com/script/frankerfacez-4.0-an+fx.xpi"
|
||||||
|
@ -67,6 +74,13 @@ updateVuetorrent() {
|
||||||
|
|
||||||
|
|
||||||
doAll() {
|
doAll() {
|
||||||
|
updateDocker
|
||||||
|
updateFFZ
|
||||||
|
updateFirefoxAddons
|
||||||
|
updateVuetorrent
|
||||||
|
}
|
||||||
|
|
||||||
|
doAllWithoutDocker() {
|
||||||
updateFFZ
|
updateFFZ
|
||||||
updateFirefoxAddons
|
updateFirefoxAddons
|
||||||
updateVuetorrent
|
updateVuetorrent
|
||||||
|
@ -74,6 +88,8 @@ doAll() {
|
||||||
|
|
||||||
|
|
||||||
[[ "$1" == "-a" || "$1" == "--all" ]] && doAll
|
[[ "$1" == "-a" || "$1" == "--all" ]] && doAll
|
||||||
|
[[ "$1" == "-ad" || "$1" == "--all-no-docker" ]] && doAllWithoutDocker
|
||||||
|
[[ "$1" == "-d" || "$1" == "--docker" ]] && updateDocker
|
||||||
[[ "$1" == "-f" || "$1" == "--firefox" ]] && updateFirefoxAddons
|
[[ "$1" == "-f" || "$1" == "--firefox" ]] && updateFirefoxAddons
|
||||||
[[ "$1" == "-ffz" || "$1" == "--frankerfacez" ]] && updateFFZ
|
[[ "$1" == "-ffz" || "$1" == "--frankerfacez" ]] && updateFFZ
|
||||||
[[ "$1" == "-v" || "$1" == "--vuetorrent" ]] && updateVuetorrent
|
[[ "$1" == "-v" || "$1" == "--vuetorrent" ]] && updateVuetorrent
|
||||||
|
|
Loading…
Reference in a new issue