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(preun): systemd-units
|
||||||
Requires(postun): systemd-units
|
Requires(postun): systemd-units
|
||||||
|
|
||||||
|
Provides: user(%name)
|
||||||
|
|
||||||
%description
|
%description
|
||||||
GNOME Initial Setup is an alternative to firstboot, providing
|
GNOME Initial Setup is an alternative to firstboot, providing
|
||||||
a good setup experience to welcome you to your system, and walks
|
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}
|
%find_lang %{name}
|
||||||
|
|
||||||
|
%pre
|
||||||
|
useradd -rM -d /run/gnome-initial-setup/ -s /sbin/nologin %{name} &>/dev/null || :
|
||||||
|
|
||||||
%post
|
%post
|
||||||
if [ $1 -eq 1 ] ; then
|
if [ $1 -eq 1 ] ; then
|
||||||
# Initial installation
|
# Initial installation
|
||||||
@ -78,6 +83,7 @@ fi
|
|||||||
|
|
||||||
%postun
|
%postun
|
||||||
%systemd_postun
|
%systemd_postun
|
||||||
|
userdel %{name} &>/dev/null || :
|
||||||
|
|
||||||
%files -f %{name}.lang
|
%files -f %{name}.lang
|
||||||
%doc COPYING README
|
%doc COPYING README
|
||||||
|
Loading…
Reference in New Issue
Block a user