update notes, helperbot, phosphorus
This commit is contained in:
parent
80c168f9a6
commit
8dab75afb0
29 changed files with 1340 additions and 46 deletions
26
helperbot
26
helperbot
|
|
@ -113,6 +113,9 @@ function info_help {
|
|||
echo "${bold}-v${normal}, ${bold}--vacuum${normal}"
|
||||
echo " Vacuum the postgresql databases."
|
||||
echo
|
||||
echo "${bold}--psql${normal}"
|
||||
echo " Enter the postgresql shell."
|
||||
echo
|
||||
echo "${bold}--docker-cleanup${normal}"
|
||||
echo " Cleans up and purges all unused Docker images, networks, containers and volumes."
|
||||
echo
|
||||
|
|
@ -363,6 +366,16 @@ 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
|
||||
|
|
@ -606,6 +619,17 @@ function update_certificates {
|
|||
fi
|
||||
}
|
||||
|
||||
# ╭────────────╮
|
||||
# │ enter psql │
|
||||
# ╰────────────╯
|
||||
function enter_psql {
|
||||
if [[ ${UID} != 0 ]]; then
|
||||
sudo docker exec -it postgres-db-1 /bin/bash -c "psql -U postgres"
|
||||
else
|
||||
docker exec -it postgres-db-1 /bin/bash -c "psql -U postgres"
|
||||
fi
|
||||
}
|
||||
|
||||
# ╭──────────────────╮
|
||||
# │ update helperbot │
|
||||
# ╰──────────────────╯
|
||||
|
|
@ -758,6 +782,8 @@ while [ -n "$1" ]; do
|
|||
detect_system
|
||||
fi
|
||||
system_vacuum;;
|
||||
--psql) # enter the psql shell
|
||||
enter_psql;;
|
||||
--docker-cleanup) # docker cleanup
|
||||
root_check
|
||||
if [ ! -v synth_current_system ]; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue