Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
fix(php): fail on error when upgrading php (#10056)
Browse files Browse the repository at this point in the history
Refs: MON-7341
  • Loading branch information
kduret authored and tuntoja committed Sep 27, 2021
1 parent c97dd3b commit 3956dd3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/migrate_php73.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
#
# For more information : contact@centreon.com

set -e

function usage() {
cat <<EOF
This script aims to upgrade the php library from 7.2 to 7.3. (Centos 7 only)
Expand Down Expand Up @@ -98,7 +100,7 @@ yum install -q -y \
rh-php73-php-pecl-gnupg

info "Copying php-fpm configuration from 7.2 to 7.3"
\cp /etc/opt/rh/rh-php72/php-fpm.d/*.conf /etc/opt/rh/rh-php73/php-fpm.d/
cp /etc/opt/rh/rh-php72/php-fpm.d/*.conf /etc/opt/rh/rh-php73/php-fpm.d/

info "Copying php configuration from 7.2 to 7.3"
cp /etc/opt/rh/rh-php72/php.d/50-centreon.ini /etc/opt/rh/rh-php73/php.d/50-centreon.ini
Expand Down

0 comments on commit 3956dd3

Please sign in to comment.