about summary refs log tree commit diff
path: root/deploy/scripts
diff options
context:
space:
mode:
authorStarfall <us@starfall.systems>2023-01-17 13:59:40 -0600
committerStarfall <us@starfall.systems>2023-01-17 14:26:55 -0600
commit7515716e7f3950a3a6de04aac1b88215aa40795e (patch)
tree9a67642bfde79cfef092de8b87a3c80bd2ccad43 /deploy/scripts
parent0d0c26b589a0fedb4cf336683da4c0272a4391d1 (diff)
update almost everything except the setup script
Diffstat (limited to 'deploy/scripts')
-rwxr-xr-xdeploy/scripts/backup.sh2
-rw-r--r--deploy/scripts/update-containers.sh19
2 files changed, 1 insertions, 20 deletions
diff --git a/deploy/scripts/backup.sh b/deploy/scripts/backup.sh
index ae2c774..df49890 100755
--- a/deploy/scripts/backup.sh
+++ b/deploy/scripts/backup.sh
@@ -11,7 +11,7 @@
 COMPOSE="$COMPOSE -f $YML_LOC"
 
 if [ "$1" == 'daily' ]; then
-	find $BACKUP_LOC -type f -name postgres-daily.* -mtime +7 -delete
+	find $BACKUP_LOC -type f -name postgres-daily.* -mtime +3 -delete
 	$COMPOSE exec -T -u postgres db sh -c "umask 0377 && /usr/local/bin/pg_dump -Fc -h db -d postgres -U postgres" > "$BACKUP_LOC/postgres-daily.$(date -Iseconds).pgsql"
 	$COMPOSE run -T --rm rails rake mastodon:media:remove_remote
 fi
diff --git a/deploy/scripts/update-containers.sh b/deploy/scripts/update-containers.sh
deleted file mode 100644
index 302731c..0000000
--- a/deploy/scripts/update-containers.sh
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/bash
-
-[ -z "$COMPOSE" ] && COMPOSE="$(command -v docker-compose)"
-[ -z "$COMPOSE" ] && COMPOSE="/usr/local/bin/docker-compose"
-
-cd "$HOME" || exit
-
-[ -z "$NGINX_WEBHOOK" ] || printf "Content-Type: text/plain\r\n\r\n"
-
-($COMPOSE pull 2>&1 | grep --silent "Downloaded newer") && {
-  $COMPOSE up -d
-
-  docker cp "$($COMPOSE ps -q mstweb):/mastodon/public/assets" public/
-  docker cp "$($COMPOSE ps -q mstweb):/mastodon/public/packs" public/
-
-  docker system prune --all -f
-
-  curl -sS "https://raw.githubusercontent.com/pluralcafe/utils/master/deploy/docker-compose.yml" > docker-compose.yml
-}