create packager user/group in case it does not exist [release 3.90.0-2mamba;Sat Sep 02 2017]
This commit is contained in:
parent
b255785961
commit
1904d12974
@ -1,9 +1,11 @@
|
|||||||
%define liveuser_uid 999
|
%define liveuser_uid 999
|
||||||
|
%define packager_groupid 65028
|
||||||
|
%define packager_userid 65028
|
||||||
%define lpadmin_uid 65032
|
%define lpadmin_uid 65032
|
||||||
%define lpadmin_gid 65032
|
%define lpadmin_gid 65032
|
||||||
Name: livecd-tools
|
Name: livecd-tools
|
||||||
Version: 3.90.0
|
Version: 3.90.0
|
||||||
Release: 1mamba
|
Release: 2mamba
|
||||||
Summary: Live cd environment and utilities
|
Summary: Live cd environment and utilities
|
||||||
Group: System/Tools
|
Group: System/Tools
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
@ -71,6 +73,9 @@ Calamares installer configuration for the openmamba distribution.
|
|||||||
|
|
||||||
%pre -n live-user-environment
|
%pre -n live-user-environment
|
||||||
if [ $1 -eq 1 ]; then
|
if [ $1 -eq 1 ]; then
|
||||||
|
# add package user if rpm package is not installed before
|
||||||
|
/usr/sbin/groupadd packager -g %{packager_groupid} 2>/dev/null || :
|
||||||
|
/usr/sbin/useradd packager -u %{packager_userid} -g packager -d /dev/null -s /bin/false 2>/dev/null || :
|
||||||
# add lpadmin user if cups is not installed before
|
# add lpadmin user if cups is not installed before
|
||||||
/usr/sbin/groupadd lpadmin -g %{lpadmin_gid} &>/dev/null
|
/usr/sbin/groupadd lpadmin -g %{lpadmin_gid} &>/dev/null
|
||||||
/usr/sbin/useradd lpadmin -c "Cups printing daemon" -d /dev/null \
|
/usr/sbin/useradd lpadmin -c "Cups printing daemon" -d /dev/null \
|
||||||
@ -182,6 +187,9 @@ fi
|
|||||||
%attr(-,liveuser,users) /home/liveuser/.kde4/share/config/*
|
%attr(-,liveuser,users) /home/liveuser/.kde4/share/config/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Sep 02 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 3.90.0-2mamba
|
||||||
|
- create packager user/group in case it does not exist
|
||||||
|
|
||||||
* Sat Dec 03 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 3.90.0-1mamba
|
* Sat Dec 03 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 3.90.0-1mamba
|
||||||
- update to 3.90.0
|
- update to 3.90.0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user