Add rpm dependency on shadow-utils for useradd

Fixes #8951.
pull/8956/head
Mark Rushakoff 2017-10-12 09:13:01 -07:00
parent 85425e8d7f
commit be0438ad36
2 changed files with 2 additions and 2 deletions

View File

@ -714,7 +714,7 @@ def package(build_output, pkg_name, version, nightly=False, iteration=1, static=
package_build_root,
current_location)
if package_type == "rpm":
fpm_command += "--depends coreutils --rpm-posttrans {}".format(POSTINST_SCRIPT)
fpm_command += "--depends coreutils --depends shadow-utils --rpm-posttrans {}".format(POSTINST_SCRIPT)
out = run(fpm_command, shell=True)
matches = re.search(':path=>"(.*)"', out)
outfile = None

View File

@ -93,7 +93,7 @@ if [ "$OS" == "linux" ] || [ "$OS" == "darwin" ]; then
# don't need static install packages.
if [ "$OS" == "linux" ] && [ "$STATIC" != "1" ]; then
# Call fpm to build .deb and .rpm packages.
for typeargs in "-t deb" "-t rpm --depends coreutils"; do
for typeargs in "-t deb" "-t rpm --depends coreutils --depends shadow-utils"; do
FPM_NAME=$(
fpm \
-s dir \