/[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.17 by jpp, Sat Dec 17 07:19:17 2022 UTC Revision 1.18 by jpp, Wed Dec 28 20:13:45 2022 UTC
# Line 274  cd .. Line 274  cd ..
274  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
275    
276  %pre  %pre
277    if ! /usr/bin/id phpki &>/dev/null; then
278      echo "Creating phpki user"
279      /usr/sbin/useradd -c 'Phpki User' -s /sbin/nologin -r -d /opt/phpki/phpki-store phpki &>/dev/null || \
280                    %logmsg "Unexpected error adding user \"phpki\". Abort installation."
281    fi
282    
283  echo "******************************************************"  echo "******************************************************"
284  echo "* "  echo "* "
285  echo "*       !!! IMPORTANT - READ THIS NOW !!! "  echo "*       !!! IMPORTANT - READ THIS NOW !!! "
# Line 320  else Line 326  else
326  fi  fi
327    
328    
   
 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  
   
329  %preun  %preun
330    
331    


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