Skip to content

Commit

Permalink
only do an apache restart, if apache is already running
Browse files Browse the repository at this point in the history
  • Loading branch information
aurora committed Jun 25, 2018
1 parent 2e64ccb commit e811dd8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions create_package.sh 100644 → 100755
Expand Up @@ -89,6 +89,7 @@ echo "# create php.ini based on php.ini-development" >>$root/pkg/post-install
echo "cp /usr/local/php5/lib/php.ini-development /usr/local/php5/lib/php.ini" >>$root/pkg/post-install
cat update_httpd_conf.sh >> $root/pkg/post-install
echo "# restart apache" >>$root/pkg/post-install
echo "if sudo launchctl list | grep org.apache.httpd >/dev/null; then" >>$root/pkg/post-install
echo "echo 'Restarting Apache'" >>$root/pkg/post-install
echo "/usr/sbin/httpd -t && /usr/sbin/apachectl restart" >>$root/pkg/post-install
echo "if [[ $? != 0 ]]; then" >>$root/pkg/post-install
Expand All @@ -97,6 +98,7 @@ echo "echo 'INFO: If you got an error about incompatible libxml2 libraries, plea
echo "echo 'sudo apachectl restart'" >>$root/pkg/post-install
echo "echo '**********' ">>$root/pkg/post-install
echo "fi" >>$root/pkg/post-install
echo "fi" >>$root/pkg/post-install

echo "Tag the release"
ODIR=$PWD
Expand Down

0 comments on commit e811dd8

Please sign in to comment.