Add a static gnome-initial-setup user
This commit is contained in:
parent
c743529922
commit
0893109c85
@ -41,6 +41,8 @@ Requires(post): systemd-units
|
||||
Requires(preun): systemd-units
|
||||
Requires(postun): systemd-units
|
||||
|
||||
Provides: user(%name)
|
||||
|
||||
%description
|
||||
GNOME Initial Setup is an alternative to firstboot, providing
|
||||
a good setup experience to welcome you to your system, and walks
|
||||
@ -67,6 +69,9 @@ desktop-file-validate %{buildroot}/%{_datadir}/gdm/greeter/applications/setup-sh
|
||||
|
||||
%find_lang %{name}
|
||||
|
||||
%pre
|
||||
useradd -rM -d /run/gnome-initial-setup/ -s /sbin/nologin %{name} &>/dev/null || :
|
||||
|
||||
%post
|
||||
if [ $1 -eq 1 ] ; then
|
||||
# Initial installation
|
||||
@ -78,6 +83,7 @@ fi
|
||||
|
||||
%postun
|
||||
%systemd_postun
|
||||
userdel %{name} &>/dev/null || :
|
||||
|
||||
%files -f %{name}.lang
|
||||
%doc COPYING README
|
||||
|
Loading…
Reference in New Issue
Block a user