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

View File

@@ -134,9 +134,6 @@ curl -L -s $GITHUB_INSTALL_SCRIPTS/nginx.danbooru.conf -o /etc/nginx/sites-enabl
sed -i -e "s/__hostname__/$HOSTNAME/g" /etc/nginx/sites-enabled/danbooru.conf
/etc/init.d/nginx restart
# Setup logrotate
curl -L -s $GITHUB_INSTALL_SCRIPTS/danbooru_logrotate_conf -o /etc/logrotate.d/danbooru.conf
# Setup danbooru account
echo "* Enter a new password for the danbooru account"
passwd danbooru

View File

@@ -1,30 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<title>The change you wanted was rejected (422)</title>
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script> <style type="text/css">
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
div.dialog {
width: 25em;
padding: 0 4em;
margin: 4em auto 0 auto;
border: 1px solid #ccc;
border-right-color: #999;
border-bottom-color: #999;
}
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
</style>
</head>
<body>
<!-- This file lives in public/422.html -->
<div class="dialog">
<h1>The change you wanted was rejected.</h1>
<p>Maybe you tried to change something you didn't have access to.</p>
</div>
</body>
</html>

View File

@@ -1,22 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="1; URL=http://danbooru.donmai.us/wiki_pages?/users"/>
<title>Redirecting</title>
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
<link rel="stylesheet" type="text/css" media="screen" href="/stylesheets/default.css" title="default" />
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-86094-4");
pageTracker._trackPageview();
} catch(err) {}
</script>
</head>
<body>
<p>Redirecting...</p>
</body>
</html>

View File

@@ -1,25 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="60">
<title>i can't take it easy ;_;</title>
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<link rel="stylesheet" type="text/css" media="screen" href="/stylesheets/default.css" title="default">
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-86094-4");
pageTracker._trackPageview();
} catch(err) {}
</script>
</head>
<body>
<div style="text-align: center; margin-top: 5em;">
<p style="width: 40em; margin: auto;">The server is currently overloaded. You can purchase a <a href="/503-redirect.html">gold account</a> for $20 to view this page anyway.</p>
<p style="width: 40em; margin: auto;"> This page will automatically refresh in one minute.</p>
</div>
</body>
</html>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

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