Remove unused files.
This commit is contained in:
0
script/install/danbooru_local_config.rb.templ
Executable file → Normal file
0
script/install/danbooru_local_config.rb.templ
Executable file → Normal 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
0
script/install/database.yml.templ
Executable file → Normal 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
|
||||
@@ -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';
|
||||
@@ -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")
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user