Compare commits
5 Commits
c3ef1c7c4e
...
a1719b09f5
Author | SHA1 | Date |
---|---|---|
Aminda Suomalainen | a1719b09f5 | |
Aminda Suomalainen | c6be24aca4 | |
Aminda Suomalainen | 81d7a927e9 | |
Aminda Suomalainen | 2a2241c968 | |
Aminda Suomalainen | e8f071993a |
|
@ -4,6 +4,7 @@
|
|||
*.jpeg
|
||||
# download-forgejo.bash results to these
|
||||
forgejo-*
|
||||
gitea
|
||||
# employees.bash
|
||||
employees.csv
|
||||
# submodule symlinks
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue