Skip to content

Commit

Permalink
useradd on RHEL4 does not know long options
Browse files Browse the repository at this point in the history
so we needed to use the short ones
  • Loading branch information
pstorz committed Apr 28, 2014
1 parent 9514331 commit 9a75819
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platforms/packaging/bareos-RHEL-4.spec
Expand Up @@ -934,7 +934,7 @@ echo "This is a meta package to install a full bareos system" > %{buildroot}%{_d
%define restart_on_update() (/sbin/service %1 condrestart >/dev/null 2>&1 || true ; %nil)
%define insserv_cleanup() (/bin/true ; %nil)
%define create_group() (getent group %1 > /dev/null || groupadd -r %1 ; %nil);
%define create_user() ( getent passwd %1 > /dev/null || useradd -r --comment "%1" --home %{working_dir} -g %{daemon_group} --shell /bin/false %1 ; %nil)
%define create_user() ( getent passwd %1 > /dev/null || useradd -r -c "%1" -d %{working_dir} -g %{daemon_group} -s /bin/false %1 ; %nil);

%post director
%{script_dir}/bareos-config initialize_local_hostname
Expand Down

0 comments on commit 9a75819

Please sign in to comment.