 		Promise.all([
 			knex('config').truncate()
 			.then ->
-				userConfig
-			.then (userConfig) ->
 				knex('config').insert([
 					{ key: 'uuid', value: uuid }
 					{ key: 'apiKey', value: userConfig.apiKey }


module.exports = ->
	# Load config file
	userConfig = fs.readFileAsync('/boot/config.json', 'utf8').then(JSON.parse)

	version = utils.getSupervisorVersion()


		division: ''
	)

	Promise.all([keys, version])
	.then ([keys, version]) ->
		console.log('UUID:', uuid)
		console.log('User ID:', userConfig.userId)
		console.log('User:', userConfig.username)
