mirror of
https://codeberg.org/hyperreal/admin-scripts
synced 2024-11-25 09:03:41 +01:00
Use bash
This commit is contained in:
parent
f4527cf912
commit
e8428f1236
6
justfile
6
justfile
@ -9,7 +9,7 @@ release := `grep "VERSION_CODENAME" /etc/os-release | awk -F= '{print $2}'`
|
||||
run_user := env_var("USER")
|
||||
|
||||
caddy:
|
||||
#!/usr/bin/env sh
|
||||
#!/usr/bin/env bash
|
||||
if [ "$distro" == "debian" ]; then
|
||||
sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https curl
|
||||
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg
|
||||
@ -25,7 +25,7 @@ caddy:
|
||||
fi
|
||||
|
||||
thelounge:
|
||||
#!/usr/bin/env sh
|
||||
#!/usr/bin/env bash
|
||||
if [ "$distro" == "debian" ]; then
|
||||
curl -s https://api.github.com/repos/thelounge/thelounge-deb/releases/latest | grep "browser_download_url.*deb" | cut -d : -f 2,3 | tr -d '"' | wget -qi -
|
||||
sudo apt install -y ./thelounge*.deb
|
||||
@ -45,7 +45,7 @@ scihub:
|
||||
rm -fv ~/scihub-torrent-urls/urls.txt
|
||||
|
||||
docker:
|
||||
#!/usr/bin/env sh
|
||||
#!/usr/bin/env bash
|
||||
if [ "$distro" == "debian" ]; then
|
||||
for pkg in docker.io docker-doc docker-compose podman-docker containerd runc; do sudo apt remove $pkg; done
|
||||
sudo apt update
|
||||
|
Loading…
Reference in New Issue
Block a user