--- rpms/phpki-ng/contribs10/phpki-ng.spec 2021/04/05 09:40:45 1.10 +++ rpms/phpki-ng/contribs10/phpki-ng.spec 2021/04/06 00:24:42 1.11 @@ -4,7 +4,7 @@ %define name phpki-ng %define version 0.84 -%define release 9 +%define release 10 Summary: Phpki is a simple certificate management suite Name: %{name} Version: %{version} @@ -42,6 +42,10 @@ With it, you may create and centrally ma e-mail clients, SSL servers, and VPN applications. %changelog +* Tue Apr 06 2021 John Crisp 0.84-9.sme +- And tidy up the copying wording. [SME: 11192] +- Credit to Terry Fage for persisting with testing + * Mon Apr 05 2021 John Crisp 0.84-9.sme - Really fix the copy this time [SME: 11192] @@ -262,16 +266,17 @@ if [ -d /opt/phpki/phpki-store ] ; then RANDOM=$$ PHPKIDIR=$(( 1 + $RANDOM%99999 )) echo "Number is $PHPKIDIR" - 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" /bin/cp -pr /opt/phpki/phpki-store "/opt/phpki/phpki-store.$PHPKIDIR" - echo "Directory moved...continuing installaton" + echo "Directory copied...continuing installaton" else echo "No directory detected...continuing installaton" fi -echo "Creating phpki user" + if ! /usr/bin/id phpki &>/dev/null; then +echo "Creating phpki user" /usr/sbin/useradd -c 'Phpki User' -s /sbin/nologin -r -d /opt/phpki/phpki-store phpki &>/dev/null || \ %logmsg "Unexpected error adding user \"phpki\". Abort installation." fi