packaging: Add buxton user creation to spec
authorBrad Peters <brad.t.peters@intel.com>
Wed, 27 Aug 2014 18:37:43 +0000 (11:37 -0700)
committerJosé Bollo <jose.bollo@open.eurogiciel.org>
Mon, 22 Dec 2014 09:37:57 +0000 (10:37 +0100)
This is necessary for the initial DB's to be created
properly, and for the service to run as 'buxton'

Change-Id: Id084518850a8bcfd694bb0952cab5526f3dcc92e

packaging/buxton.spec

index 8e0f55e..6c96bad 100644 (file)
@@ -62,6 +62,9 @@ install -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/buxton.conf
 
 %post
 /sbin/ldconfig
+#buxtond runs as user buxton, which much be created
+useradd buxton
+
 buxtonctl create-db base
 buxtonctl create-db isp
 if [ "$1" -eq 1 ] ; then