From e50dbd6fedd7a22e824c5121f0ca6df1a03d79ad Mon Sep 17 00:00:00 2001 From: Ruben Date: Tue, 5 Aug 2025 00:42:35 -0500 Subject: [PATCH] update documentations, remove bonfire --- helperbot | 12 +----------- notes.md => notes/postgres.md | 8 ++++---- setup.md => notes/setup.md | 3 ++- readme.md | 12 ------------ 4 files changed, 7 insertions(+), 28 deletions(-) rename notes.md => notes/postgres.md (89%) rename setup.md => notes/setup.md (99%) diff --git a/helperbot b/helperbot index 0bcb453..6b19d25 100755 --- a/helperbot +++ b/helperbot @@ -35,7 +35,7 @@ fi # check that all required utils are installed function check_applications { - local all_required_applications=("bash" "wget" "tar" "unzip" "zstd" "backblaze-b2") + local all_required_applications=("bash" "wget" "tar" "unzip" "zstd" "backblaze-b2" "jq") for application in "${all_required_applications[@]}"; do if [ ! -x "$(command -v $application)" ]; then @@ -366,16 +366,6 @@ function system_backup { cp $backup_local_folder/mastodon/compose.yaml $backup_working_directory/mastodon cp $backup_local_folder/mastodon/.env $backup_working_directory/mastodon # ============================================================================= - # bonfire social - echo "${blue}Pulling in Bonfire...${normal}" - mkdir -p $backup_working_directory/bonfire - # database - postgres_backup postgres-db-1 bonfire bonfire $backup_working_directory - # configs, extra - cp $backup_local_folder/bonfire/compose.yaml $backup_working_directory/bonfire - cp $backup_local_folder/bonfire/.env $backup_working_directory/bonfire - cp $backup_local_folder/bonfire/.env.secrets $backup_working_directory/bonfire - # ============================================================================= # pds echo "${blue}Pulling in PDS...${normal}" mkdir -p $backup_working_directory/pds diff --git a/notes.md b/notes/postgres.md similarity index 89% rename from notes.md rename to notes/postgres.md index 87e9a80..ef32985 100644 --- a/notes.md +++ b/notes/postgres.md @@ -1,8 +1,6 @@ -# Notes +# Postgresql -## Postgresql - -### Creating a user and the database +## Creating a user and the database To create a new user within postgresql, enter the shell via `helperbot --psql`. @@ -23,6 +21,8 @@ GRANT ALL PRIVILEGES ON DATABASE TO ; GRANT ALL ON SCHEMA public TO ; ``` +## Deleting a user and their database + If you ever need to delete a user and their database: ```sql DROP DATABASE ; diff --git a/setup.md b/notes/setup.md similarity index 99% rename from setup.md rename to notes/setup.md index ecc208f..6aa40fe 100644 --- a/setup.md +++ b/notes/setup.md @@ -103,10 +103,11 @@ Now that we're mostly set up and secure, let's install all of the packages requi - `unzip` - `npm` - `git` +- `jq` - `zsh` ```bash -sudo apt install neovim htop btop zram-tools rsync backblaze-b2 unzip git zsh +sudo apt install neovim htop btop zram-tools rsync backblaze-b2 unzip git jq zsh ``` Docker installation is another process, please refer to their links to do it. diff --git a/readme.md b/readme.md index 02b70cc..66179e0 100644 --- a/readme.md +++ b/readme.md @@ -17,20 +17,8 @@ synth.download's services currently consists of **2** different virtual machines - also serves as the main caddy machine (static sites, etc) - ...and also serves various other *tiny* services like alternative frontends -*original* virtual machine planning, which may go unused: - -- [`cerium`](./cerium) - - also runs on the intel-based server! this vm runs everything that isn't exactly considered "important". this may include things such as: - - alternative frontends - - and any other services and other related things. - - meant to be self-maintained and automated so we don't have to keep an eye on it at all times and not worry about it. -- [`synthnix`](./synthnix) - - our pubnix vm for our tilde members. runs on the amd-based server, kept relatively quiet. - and as for other things: -- [`Caddyfile`](./Caddyfile) - - the "main" caddyfile that serves everything from all of our vms and configs to one. - [`notes`](./notes) - personal notes/knowledge base while setting things up, may contain useful information for others. - [`helperbot`](./helperbot)