Merge "Replace hardcoded "stack" user to $STACK_USER"

This commit is contained in:
Zuul 2019-05-09 14:53:57 +00:00 committed by Gerrit Code Review
commit 0a3b1968aa

View File

@ -820,7 +820,7 @@ function setup_virtualpdu {
cmd=$(which virtualpdu)
cmd+=" $IRONIC_VPDU_CONFIG_FILE"
write_user_unit_file $IRONIC_VPDU_SYSTEMD_SERVICE "$cmd" "" "stack"
write_user_unit_file $IRONIC_VPDU_SYSTEMD_SERVICE "$cmd" "" "$STACK_USER"
$SYSTEMCTL enable $IRONIC_VPDU_SYSTEMD_SERVICE
}
@ -902,7 +902,7 @@ EOF
cmd+=" --env FLASK_DEBUG=1"
cmd+=" --env SUSHY_EMULATOR_CONFIG=${IRONIC_REDFISH_EMULATOR_CONFIG}"
write_user_unit_file $IRONIC_REDFISH_EMULATOR_SYSTEMD_SERVICE "$cmd" "" "stack"
write_user_unit_file $IRONIC_REDFISH_EMULATOR_SYSTEMD_SERVICE "$cmd" "" "$STACK_USER"
$SYSTEMCTL enable $IRONIC_REDFISH_EMULATOR_SYSTEMD_SERVICE
}