Replace hardcoded "stack" user to $STACK_USER
Follow up to https://review.opendev.org/#/c/657606 which fixed vbmcd service. Change-Id: I7d37cd6191770c7efa6a034e18619f744d9c35e8
This commit is contained in:
parent
afecd4e710
commit
a89e903f7c
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user