Skip to content

Commit

Permalink
Use oneshot to add default user to ssu group
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernd Wachter committed Apr 3, 2013
1 parent 7fd60df commit b5f4611
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 3 additions & 0 deletions rpm/ssu.changes
@@ -1,3 +1,6 @@
* Wed Apr 03 2013 Bernd Wachter <bernd.wachter@jollamobile.com> - 0.30.1
- Use oneshot to add default user to ssu group

* Tue Apr 02 2013 Bernd Wachter <bernd.wachter@jollamobile.com> - 0.30
- Add some more unit tests

Expand Down
8 changes: 3 additions & 5 deletions rpm/ssu.spec
@@ -1,5 +1,5 @@
Name: ssu
Version: 0.30
Version: 0.30.1
Release: 1
Summary: SSU enabler for RND
Group: System/Base
Expand All @@ -14,6 +14,7 @@ BuildRequires: pkgconfig(libsystemd-journal)
BuildRequires: oneshot
BuildRequires: doxygen
Requires(pre): shadow-utils
Requires(pre): /usr/bin/groupadd-user
Requires(postun): shadow-utils
Requires: ssu-vendor-data

Expand Down Expand Up @@ -142,10 +143,7 @@ cp -R doc/html/* %{buildroot}/%{_docdir}/%{name}/

%pre
groupadd -rf ssu
USER=$(getent passwd 1000 | cut -d: -f1)
if [ -n "$USER" ]; then
usermod -a -G ssu $USER
fi
groupadd-user ssu
if [ -f /etc/ssu/ssu.ini ]; then
chgrp ssu /etc/ssu/ssu.ini
chmod 664 /etc/ssu/ssu.ini
Expand Down

0 comments on commit b5f4611

Please sign in to comment.