Skip to content

Commit

Permalink
Fixes #7095: Wrong permissions on /var/lib/ncf-api-venv/
Browse files Browse the repository at this point in the history
  • Loading branch information
amousset committed Aug 12, 2015
1 parent a87b38a commit a14e800
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ncf-api-virtualenv/SPECS/ncf-api-virtualenv.spec
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ install -m 644 %{_builddir}/ncf-api-virtualenv.pp %{buildroot}%{installdir}/sha
if ! getent passwd %{user_name} >/dev/null; then
echo -n "INFO: Creating the %{user_name} user..."
useradd -r -d /var/lib/%{user_name} -c "ncf API,,," %{user_name} >/dev/null 2>&1
chown %{user_name}:%{user_name} /var/lib/%{user_name}/
echo " Done"
fi

Expand Down Expand Up @@ -266,7 +267,6 @@ rm -rf %{buildroot}
#=================================================
%files -n ncf-api-virtualenv
%defattr(-, root, root, 0755)
%attr(755, %{user_name}, %{user_name}) /var/lib/%{user_name}
%{installdir}/
%config(noreplace) %{apache_vhost_dir}/ncf-api-virtualenv.conf

Expand Down

0 comments on commit a14e800

Please sign in to comment.