Remove obsolete scripts.

These are mostly old files mostly related to maintenance of Danbooru 1
or the upgrade to Danbooru 2.
This commit is contained in:
evazion
2019-08-06 10:42:45 -05:00
parent 2df6bf41f6
commit b0da649b09
10 changed files with 0 additions and 4863 deletions

View File

@@ -1,7 +0,0 @@
#!/bin/bash
export RAILS_ENV=production
cd "$(dirname $0)/../../"
script/donmai/backup_db
script/donmai/backup_db_to_s3
script/donmai/prune_backup_dbs

View File

@@ -1,3 +0,0 @@
#!/bin/bash
mv public/maintenance.html.bak public/maintenance.html

View File

@@ -1,6 +0,0 @@
#!/bin/sh
script/donmai/downbooru
sleep 5
ps aux | grep Rack | grep Rl | cut -c10-15 | xargs kill -SIGTERM
script/donmai/upbooru

View File

@@ -1,3 +0,0 @@
#!/bin/bash
mv public/maintenance.html public/maintenance.html.bak

View File

@@ -1,10 +0,0 @@
#!/bin/sh
psql -h dbserver <<EOF
set statement_timeout = 0;
vacuum analyze posts;
vacuum analyze tags;
vacuum analyze users;
vacuum analyze favorites;
vacuum analyze comments;
EOF

View File

@@ -1,6 +0,0 @@
#!/usr/bin/env ruby
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
APP_PATH = File.expand_path('../../config/application', __FILE__)
require File.expand_path('../../config/boot', __FILE__)
require 'rails/commands'

View File

@@ -1,12 +0,0 @@
#!/usr/bin/env ruby
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'config', 'environment'))
PoolVersion.find_each do |version|
version.update_column(:post_ids, version.post_ids.scan(/\d+/).in_groups_of(2).map {|x| x.first}.join(" "))
end
TagImplication.destroy_all("antecedent_name = consequent_name")
TagImplication.find_each do |impl|
impl.update_descendant_names!
end

File diff suppressed because it is too large Load Diff