From 5a2c5dc0b1ac1c7fc8d59c75993128b03e367224 Mon Sep 17 00:00:00 2001 From: rafael Date: Wed, 1 Feb 2023 13:11:38 +0100 Subject: [PATCH] 10100 deleting if congition and add the exec to update section where config php exist --- pandora_console/pandora_console.rhel7.spec | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pandora_console/pandora_console.rhel7.spec b/pandora_console/pandora_console.rhel7.spec index e00e498f8b..163613b9d8 100644 --- a/pandora_console/pandora_console.rhel7.spec +++ b/pandora_console/pandora_console.rhel7.spec @@ -57,11 +57,6 @@ install -m 0644 pandora_console_logrotate_centos $RPM_BUILD_ROOT%{_sysconfdir}/l rm -rf $RPM_BUILD_ROOT %post -# Upgrading. -if [ "$1" -eq "1" ]; then - echo "Updating the database schema." - /usr/bin/php %{prefix}/pandora_console/godmode/um_client/updateMR.php 2>/dev/null -fi # Install pandora_websocket_engine service. cp -pf %{prefix}/pandora_console/pandora_websocket_engine /etc/init.d/ @@ -76,6 +71,11 @@ echo " /etc/init.d/pandora_websocket_engine start" # if [ -f %{prefix}/pandora_console/include/config.php ] ; then mv %{prefix}/pandora_console/install.php %{prefix}/pandora_console/install.done + + # Upgrading MR. + echo "Updating the database schema." + /usr/bin/php %{prefix}/pandora_console/godmode/um_client/updateMR.php 2>/dev/null + else echo "Please, now, point your browser to http://your_IP_address/pandora_console/install.php and follow all the steps described on it." fi