mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2025-08-18 04:17:21 +02:00
Compare commits
No commits in common. "c532e88f389d550e8556e9503b5b0c76123cf2e8" and "84e7d4fb007549490e5b307109dd9d248c6b18c6" have entirely different histories.
c532e88f38
...
84e7d4fb00
2
.gitignore
vendored
2
.gitignore
vendored
@ -4,5 +4,3 @@
|
||||
node_modules/
|
||||
# gdb logs aren't needed eihter
|
||||
gdb.txt
|
||||
# Kate does .kate-swp
|
||||
*.*swp
|
||||
|
1
bash/.gitignore
vendored
1
bash/.gitignore
vendored
@ -2,4 +2,3 @@
|
||||
*.png
|
||||
*.jpg
|
||||
*.jpeg
|
||||
forgejo-*
|
||||
|
@ -1,31 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
VERSION=1.18.3-2
|
||||
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"
|
||||
curl -LO "https://codeberg.org/forgejo/forgejo/releases/download/v$VERSION/forgejo-$VERSION-$PLATFORM.asc"
|
||||
fi
|
||||
|
||||
# If the binary is already downloaded, don't redownload it
|
||||
if [ -f "forgejo-$VERSION-$PLATFORM" ]
|
||||
then
|
||||
printf "Forĝejo already downloaded.\n"
|
||||
else
|
||||
printf "Downloading Forĝejo $VERSION on $PLATFORM…\n"
|
||||
curl -LO "https://codeberg.org/forgejo/forgejo/releases/download/v$VERSION/forgejo-$VERSION-$PLATFORM"
|
||||
fi
|
||||
|
||||
# The last easy to automate part.
|
||||
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"
|
||||
echo
|
Loading…
x
Reference in New Issue
Block a user