[lsc-dev] [LDAP Synchronization Connector - Bug #819] (Closed) Created lsc user in debian package should be a system user

noreply at lsc-project.org noreply at lsc-project.org
Fri Jan 15 17:57:13 CET 2016


Issue #819 has been updated by Clément OUDOT.

Status changed from Assigned to Closed
% Done changed from 0 to 100


----------------------------------------
Bug #819: Created lsc user in debian package should be a system user
http://tools.lsc-project.org/issues/819

Author: Simon Piette
Status: Closed
Priority: Normal
Assigned to: Clément OUDOT
Category: Packaging
Target version: 2.2
Problem in version: 


<pre>
diff --git a/src/install/debian/lsc.postinst b/src/install/debian/lsc.postinst
index de7e288..09b68d2 100644
--- a/src/install/debian/lsc.postinst
+++ b/src/install/debian/lsc.postinst
@@ -4,7 +4,7 @@ lsc_logdir=/var/log/lsc
 lsc_user=lsc
 lsc_group=lsc
 
-id ${lsc_user} &>/dev/null || useradd ${lsc_user}
+id ${lsc_user} &>/dev/null || adduser --quiet --system --no-create-home --home /var/lib/lsc ${lsc_user}
 
 # Always do this
 mkdir -p ${lsc_logdir}
</pre>


-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://tools.lsc-project.org/my/account
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lsc-project.org/pipermail/lsc-dev/attachments/20160115/476df252/attachment-0001.htm>


More information about the lsc-dev mailing list