Commit b5f46111 authored by Aard's avatar Aard

Use oneshot to add default user to ssu group

parent 7fd60df2
* 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
......
Name: ssu
Version: 0.30
Version: 0.30.1
Release: 1
Summary: SSU enabler for RND
Group: System/Base
......@@ -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
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment