Project

General

Profile

Actions

Bug #14541

closed

foreman-rake must preserve environment variables

Added by Jérôme Vizcaino about 8 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Rake tasks
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Calling foreman-rake db:seed fills the database with default entries.
Of theses seeds, 04-admin.rb takes care of adding the default admin account.
This can be configured using SEED_ADMIN_* environment variables but calling foreman-rake with id != foreman fails.

Looking at foreman-rake, the su call misses the -p flag, so environment is dropped when changing user.

Actions

Also available in: Atom PDF