/[smecontribs]/rpms/phpki-ng/contribs10/phpki-ng.spec
ViewVC logotype

Diff of /rpms/phpki-ng/contribs10/phpki-ng.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.10 by jcrisp, Mon Apr 5 09:40:45 2021 UTC Revision 1.11 by jcrisp, Tue Apr 6 00:24:42 2021 UTC
# Line 4  Line 4 
4    
5  %define         name phpki-ng  %define         name phpki-ng
6  %define         version 0.84  %define         version 0.84
7  %define         release 9  %define         release 10
8  Summary:        Phpki is a simple certificate management suite  Summary:        Phpki is a simple certificate management suite
9  Name:           %{name}  Name:           %{name}
10  Version:        %{version}  Version:        %{version}
# Line 42  With it, you may create and centrally ma Line 42  With it, you may create and centrally ma
42  e-mail clients, SSL servers, and VPN applications.  e-mail clients, SSL servers, and VPN applications.
43    
44  %changelog  %changelog
45    * Tue Apr 06 2021 John Crisp <jcrisp@safeandsoundit.co.uk> 0.84-9.sme
46    - And tidy up the copying wording. [SME: 11192]
47    - Credit to Terry Fage for persisting with testing
48    
49  * Mon Apr 05 2021 John Crisp <jcrisp@safeandsoundit.co.uk> 0.84-9.sme  * Mon Apr 05 2021 John Crisp <jcrisp@safeandsoundit.co.uk> 0.84-9.sme
50  - Really fix the copy this time [SME: 11192]  - Really fix the copy this time [SME: 11192]
51    
# Line 262  if [ -d /opt/phpki/phpki-store ] ; then Line 266  if [ -d /opt/phpki/phpki-store ] ; then
266      RANDOM=$$      RANDOM=$$
267      PHPKIDIR=$(( 1 + $RANDOM%99999 ))      PHPKIDIR=$(( 1 + $RANDOM%99999 ))
268      echo "Number is $PHPKIDIR"      echo "Number is $PHPKIDIR"
269      echo "moving from /opt/phpki/phpki-store to /opt/phpki/phpki-store.$PHPKIDIR"      echo "Copying from /opt/phpki/phpki-store to /opt/phpki/phpki-store.$PHPKIDIR"
270      /bin/cp -pr /opt/phpki/phpki-store "/opt/phpki/phpki-store.$PHPKIDIR"      /bin/cp -pr /opt/phpki/phpki-store "/opt/phpki/phpki-store.$PHPKIDIR"
271      echo "Directory moved...continuing installaton"      echo "Directory copied...continuing installaton"
272  else  else
273      echo "No directory detected...continuing installaton"      echo "No directory detected...continuing installaton"
274  fi  fi
275    
276  echo "Creating phpki user"  
277    
278  if ! /usr/bin/id phpki &>/dev/null; then  if ! /usr/bin/id phpki &>/dev/null; then
279    echo "Creating phpki user"
280          /usr/sbin/useradd -c 'Phpki User' -s /sbin/nologin -r -d /opt/phpki/phpki-store phpki &>/dev/null || \          /usr/sbin/useradd -c 'Phpki User' -s /sbin/nologin -r -d /opt/phpki/phpki-store phpki &>/dev/null || \
281                  %logmsg "Unexpected error adding user \"phpki\". Abort installation."                  %logmsg "Unexpected error adding user \"phpki\". Abort installation."
282  fi  fi


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed