Remove unused files.

This commit is contained in:
evazion
2019-11-15 23:59:56 -06:00
parent 3746c9890a
commit 13f26c81d8
15 changed files with 0 additions and 164 deletions

0
script/install/danbooru_local_config.rb.templ Executable file → Normal file
View File

View File

@@ -1,5 +0,0 @@
/var/www/danbooru2/shared/log/*.log {
daily
rotate 3
copytruncate
}

0
script/install/database.yml.templ Executable file → Normal file
View File

View File

@@ -1,17 +0,0 @@
[supervisord]
nodaemon=true
[program:sshd]
command=/etc/init.d/sshd start
[program:nginx]
command=/etc/init.d/nginx start
[program:postgresql]
command=/etc/init.d/postgresql start
[program:memcached]
command=/etc/init.d/memcached start
[program:crond]
command=/etc/init.d/crond start

View File

@@ -1,29 +0,0 @@
update artist_versions set updater_ip_addr = '127.0.0.1';
truncate table bans;
truncate table comment_votes;
truncate table comments;
truncate table delayed_jobs;
truncate table dmails;
truncate table forum_posts;
truncate table forum_topics;
truncate table ip_bans;
truncate table janitor_trials;
truncate table mod_actions;
truncate table news_updates;
update note_versions set updater_ip_addr = '127.0.0.1';
update pool_versions set updater_ip_addr = '127.0.0.1';
update posts set uploader_ip_addr = '127.0.0.1';
truncate table post_appeals;
truncate table post_disapprovals;
truncate table post_flags;
update post_versions set updater_ip_addr = '127.0.0.1';
truncate table post_votes;
update tag_aliases set creator_ip_addr = '127.0.0.1';
update tag_implications set creator_ip_addr = '127.0.0.1';
truncate table tag_subscriptions;
truncate table uploads;
truncate table user_feedback;
truncate table user_name_change_requests;
truncate table user_password_reset_nonces;
update users set password_hash = '', email = '', recent_tags = '', favorite_tags = '', blacklisted_tags = '', bcrypt_password_hash = '', custom_style = '', email_verification_key = '', last_logged_in_at = now(), last_forum_read_at = null, receive_email_notifications = false, updated_at = now(), time_zone = 'Eastern Time (US & Canada)';
update wiki_page_versions set updater_ip_addr = '127.0.0.1';

View File

@@ -1,23 +0,0 @@
#!/usr/bin/env ruby
file, line = ARGV[0], nil
test_name_pattern = nil
if file =~ /:\d+/
file, line = file.split(/:/)
end
if line
text = File.read(file).split(/\r\n|\r|\n/)[line.to_i - 1]
if text =~ /(?:context|should) ["'](.+?)["']/
test_name_pattern = Regexp.escape($1)
end
end
env_options = {
"TEST" => file
}
env_options["TESTOPTS"] = "--name='/#{test_name_pattern}/'" if test_name_pattern
exec(env_options, "bundle exec rake test")

View File

@@ -1,10 +0,0 @@
#!/usr/bin/env bash
bundle exec rake db:drop db:create
bundle exec rake db:migrate
bundle exec rake db:seed
# dropdb danbooru2
# createdb danbooru2
# psql danbooru2 < db/danbooru1.struct.sql
# psql danbooru2 < script/upgrade_schema.sql