]> git.pld-linux.org Git - packages/authd.git/commitdiff
- possible breakage fix: don't always overwrite ident.key
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 1 May 2005 14:31:01 +0000 (14:31 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    authd.spec -> 1.3

authd.spec

index 7cad22689c6cc4c49622da580c95207dd9bffd83..166eac43b5b32c81d03eed20782c7af1229e264a 100644 (file)
@@ -8,6 +8,7 @@ Group:          Networking/Daemons
 Source0:       %{name}-%{version}.tar.gz
 BuildRequires: openssl-devel
 BuildRequires: sed >= 4.0
+BuildRequires: missing-user-check-post-scriptlet
 Provides:      pidentd = 3.2
 Obsoletes:     pidentd
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -49,10 +50,12 @@ rm -rf $RPM_BUILD_ROOT
 %post
 # TODO: standard useradd sequence
 #/usr/sbin/adduser -s /sbin/nologin -r ident 2>/dev/null || true
-/usr/bin/openssl rand -base64 -out %{_sysconfdir}/ident.key 32
-echo CHANGE THE LINE ABOVE TO A PASSPHRASE >> %{_sysconfdir}/ident.key
-/bin/chown ident:ident %{_sysconfdir}/ident.key
-chmod o-rw %{_sysconfdir}/ident.key
+if [ "$1" = 1 ]; then
+       /usr/bin/openssl rand -base64 -out %{_sysconfdir}/ident.key 32
+       echo CHANGE THE LINE ABOVE TO A PASSPHRASE >> %{_sysconfdir}/ident.key
+       /bin/chown ident:ident %{_sysconfdir}/ident.key
+       chmod o-rw %{_sysconfdir}/ident.key
+fi
 
 %files -f authd.lang
 %defattr(644,root,root,755)
This page took 0.081563 seconds and 4 git commands to generate.