changes files

This commit is contained in:
adbagio 2024-05-09 01:45:00 -04:00
parent 1b6c5fc0ea
commit d3f22c2a70
No known key found for this signature in database
GPG key ID: 0AE37F9649850573
5 changed files with 80 additions and 23 deletions

View file

@ -2,4 +2,7 @@ alias cat = bat
alias tt = toot tui
alias ts = toot search
alias tf = toot follow
alias tf = toot follow
alias clc = cargo-install-update install-update -l
alias cua = cargo-install-update install-update --all

38
compose.yml Normal file
View file

@ -0,0 +1,38 @@
version: '3'
networks:
forgejo:
external: false
services:
server:
image: codeberg.org/forgejo/forgejo:7
container_name: forgejo
environment:
- USER_UID=1000
- USER_GID=1000
restart: always
networks:
- forgejo
volumes:
- ./forgejo:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- '3000:3000'
- '222:22'
depends_on:
- db
db:
image: postgres:14
restart: always
environment:
- POSTGRES_USER=forgejo
- POSTGRES_PASSWORD=forgejo
- POSTGRES_DB=forgejo
networks:
- forgejo
volumes:
- ./postgres:/var/lib/postgresql/data

29
install.sh Executable file
View file

@ -0,0 +1,29 @@
echo "Start apt, cargo and rustup upgrade:\n"
sudo apt-get update
echo "\nAutoremoving unnecessary packages\n"
sudo apt autoremove -y
echo "\nDone autoremove starting list new package upgrades\n"
sudo apt list --upgradable
echo "\nDone listing new package upgrades starting package upgrade\n"
sudo apt-get upgrade -y
echo "\nDone apt starting cargo\n"
cargo-install-update install-update --all
echo "\nDone cargo starting rustup\n"
rustup self update
echo "\nDone rustup starting gem\n"
sudo gem update
echo "\nFinished updates."

View file

@ -1,21 +0,0 @@
echo "Start apt, cargo and rustup upgrade:\n"
sudo apt-get update
echo "\n"
sudo apt list --upgradable
echo "\n"
sudo apt-get install -y
echo "\nDone apt starting cargo\n"
cargo-install-update install-update --all
echo "\nDone cargo starting rustup\n"
rustup self update
echo "\nFinished updates."

View file

@ -6,7 +6,15 @@ echo "\n"
sudo apt list --upgradable
echo "\nDone apt starting rustup\n"
echo "\n"
sudo apt-get install -y
echo "\nDone apt starting cargo\n"
cargo-install-update install-update --all
echo "\nDone cargo starting rustup\n"
rustup self update