Add Debian update scripts
This commit is contained in:
Executable
+17
@@ -0,0 +1,17 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
root="$(cd "$(dirname "$0")"; pwd)"
|
||||||
|
hcl="$root/amd64.pkrvars.hcl"
|
||||||
|
|
||||||
|
base="https://cdimage.debian.org/cdimage/archive/latest-oldoldstable/arm64/iso-cd/"
|
||||||
|
|
||||||
|
sums="$(curl -L "$base/SHA256SUMS")"
|
||||||
|
|
||||||
|
sha="$(echo "$sums" | awk '{print $1}')"
|
||||||
|
file="$(echo "$sums" | awk '{print $2}')"
|
||||||
|
|
||||||
|
echo "Found $file with sum $sha"
|
||||||
|
|
||||||
|
sed -i "$hcl" -E \
|
||||||
|
-e "s,( url *=).*$,\1 \"$base$file\"," \
|
||||||
|
-e "s,( checksum *=).*$,\1 \"$sha\","
|
||||||
Executable
+17
@@ -0,0 +1,17 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
root="$(cd "$(dirname "$0")"; pwd)"
|
||||||
|
hcl="$root/amd64.pkrvars.hcl"
|
||||||
|
|
||||||
|
base="https://cdimage.debian.org/cdimage/archive/latest-oldstable/arm64/iso-cd/"
|
||||||
|
|
||||||
|
sums="$(curl -L "$base/SHA256SUMS")"
|
||||||
|
|
||||||
|
sha="$(echo "$sums" | awk '{print $1}')"
|
||||||
|
file="$(echo "$sums" | awk '{print $2}')"
|
||||||
|
|
||||||
|
echo "Found $file with sum $sha"
|
||||||
|
|
||||||
|
sed -i "$hcl" -E \
|
||||||
|
-e "s,( url *=).*$,\1 \"$base$file\"," \
|
||||||
|
-e "s,( checksum *=).*$,\1 \"$sha\","
|
||||||
Executable
+17
@@ -0,0 +1,17 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
root="$(cd "$(dirname "$0")"; pwd)"
|
||||||
|
hcl="$root/amd64.pkrvars.hcl"
|
||||||
|
|
||||||
|
base="https://cdimage.debian.org/cdimage/release/current/amd64/iso-cd/"
|
||||||
|
|
||||||
|
sums="$(curl -L "$base/SHA256SUMS" | grep -v -e "-edu-" -e "-mac-")"
|
||||||
|
|
||||||
|
sha="$(echo "$sums" | awk '{print $1}')"
|
||||||
|
file="$(echo "$sums" | awk '{print $2}')"
|
||||||
|
|
||||||
|
echo "Found $file with sum $sha"
|
||||||
|
|
||||||
|
sed -i "$hcl" -E \
|
||||||
|
-e "s,( url *=).*$,\1 \"$base$file\"," \
|
||||||
|
-e "s,( checksum *=).*$,\1 \"$sha\","
|
||||||
Reference in New Issue
Block a user