From 0cffbf87c3c63b2d4bb7064635a8095b22ec0de3 Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 1 Dec 2015 12:30:41 +1100 Subject: [PATCH] update import sample to not have passwords and stuff like that --- script/import_scripts/kunena3.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/script/import_scripts/kunena3.rb b/script/import_scripts/kunena3.rb index 49b3f24e9..4c0042ff0 100644 --- a/script/import_scripts/kunena3.rb +++ b/script/import_scripts/kunena3.rb @@ -3,7 +3,7 @@ require File.expand_path(File.dirname(__FILE__) + "/base.rb") class ImportScripts::Kunena < ImportScripts::Base - KUNENA_DB = "accentral_jos1" + KUNENA_DB = "DATABASENAME" def initialize super @@ -11,9 +11,9 @@ class ImportScripts::Kunena < ImportScripts::Base @users = {} @client = Mysql2::Client.new( - host: "aircadetcentral.net", - username: "accentral_jos1", - password: "Lc3bwPL7iEY(8", + host: "HOSTNAME.COM", + username: "DATABASE_USER_NAME", + password: "DATABASE_USER_PASSWORD", database: KUNENA_DB ) end @@ -48,7 +48,7 @@ class ImportScripts::Kunena < ImportScripts::Base import_posts begin - create_admin(email: 'dave@ricey.co', username: UserNameSuggester.suggest('DJRice')) + create_admin(email: 'CHANGE@ME.COM', username: UserNameSuggester.suggest('CHAMGEME')) rescue => e puts '', "Failed to create admin user" puts e.message