]> git.pld-linux.org Git - packages/gitlab-common.git/commitdiff
fix userremove
authorElan Ruusamäe <glen@delfi.ee>
Sun, 25 Sep 2016 00:25:16 +0000 (03:25 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Sun, 25 Sep 2016 00:25:16 +0000 (03:25 +0300)
gitlab-common.spec

index c6c9454546ee8943ee17aaea34a65aa2cf42f830..4693c9fa4b8905ea9071a2c069616cb81032fae0 100644 (file)
@@ -38,7 +38,13 @@ rm -rf $RPM_BUILD_ROOT
 
 %pre
 %groupadd -g %{gitlab_gid} -r %{gitlab_group}
-%useradd -u %{gitlab_uid} -g %{gitlab_group} -s /bin/sh -r -c "GitLab" -d %{home_dir} %{gitlab_user}
+%useradd -u %{gitlab_uid} -g %{gitlab_group} -s /bin/sh -r -c "GitLab" -d %{git_dir} %{gitlab_user}
+
+%postun
+if [ "$1" = "0" ]; then
+       %userremove %{gitlab_user}
+       %groupremove %{gitlab_group}
+fi
 
 %files
 %defattr(644,root,root,755)
This page took 0.172857 seconds and 4 git commands to generate.