Compare commits

...

5 Commits

Author SHA1 Message Date
Aminda Suomalainen a1719b09f5
download-forgejo.bash: bumb version number
OK, so the version should be 7.0.0, but the instance where this script is made for is a bit behind and I want to update to that point release first.
2024-04-24 18:49:54 +03:00
Aminda Suomalainen c6be24aca4
download-forgejo.bash: increase verbosity 2024-04-24 18:48:04 +03:00
Aminda Suomalainen 81d7a927e9
download-forgejo.bash: fix warning on SC2059
https://www.shellcheck.net/wiki/SC2059
2024-04-24 18:44:57 +03:00
Aminda Suomalainen 2a2241c968
update submodule shell-things 2024-04-24 18:01:10 +03:00
Aminda Suomalainen e8f071993a
bash/usr-local-bin/nordvpn-off: add restarting unbound & systemd-resolved 2024-04-24 18:00:43 +03:00
4 changed files with 11 additions and 7 deletions

1
bash/.gitignore vendored
View File

@ -4,6 +4,7 @@
*.jpeg
# download-forgejo.bash results to these
forgejo-*
gitea
# employees.bash
employees.csv
# submodule symlinks

View File

@ -1,12 +1,12 @@
#!/usr/bin/env bash
VERSION=1.19.1-0
VERSION=1.21.11-1
PLATFORM=linux-amd64
# If the signature is already downloaded, don't redownload it
if [ -f "forgejo-$VERSION-$PLATFORM.asc" ]; then
printf "Forĝejo signature already downloaded.\n"
else
printf "Downloading Forĝejo $VERSION-$PLATFORM signature…\n"
printf "Downloading Forĝejo %b-%b signature…\n" "$VERSION" "$PLATFORM"
curl -LO "https://codeberg.org/forgejo/forgejo/releases/download/v$VERSION/forgejo-$VERSION-$PLATFORM.asc"
fi
@ -14,7 +14,7 @@ fi
if [ -f "forgejo-$VERSION-$PLATFORM" ]; then
printf "Forĝejo already downloaded.\n"
else
printf "Downloading Forĝejo $VERSION on $PLATFORM…\n"
printf "Downloading Forĝejo %b on %b\n" "$VERSION" "$PLATFORM"
curl -LO "https://codeberg.org/forgejo/forgejo/releases/download/v$VERSION/forgejo-$VERSION-$PLATFORM"
fi
@ -23,7 +23,7 @@ printf "Verifying signature…\n"
gpg --verify forgejo-$VERSION-$PLATFORM.asc
printf "Final steps: \n\t 1. Place the binary where the systemd service expects it.\n\t \
2. sudo chmod a+rx forgejo-$VERSION-$PLATFORM\n\t \
3. sudo ln -sf forgejo-$VERSION-$PLATFORM gitea \n\t \
4. sudo systemctl restart gitea"
2. sudo chmod -v a+rx forgejo-%b-%b\n\t \
3. sudo ln -sfv forgejo-%b-%b gitea \n\t \
4. sudo systemctl restart gitea.service" "$VERSION" "$PLATFORM" "$VERSION" "$PLATFORM"
echo

View File

@ -10,5 +10,8 @@ sudo systemctl restart yggdrasil.service
sudo systemctl restart iwd.service
sudo systemctl restart systemd-networkd.service
sleep 5
sudo systemctl restart unbound.service
sudo systemctl restart systemd-resolved.service
sleep 5
sudo chronyc online
set +x

@ -1 +1 @@
Subproject commit c00f750d964a0ebee486a13464a4b570eb8725f5
Subproject commit 7113fda70287360624b409fec90715fc863f9e8b