mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-26 23:35:02 +02:00
10100 deleting if congition and add the exec to update section where config php exist
This commit is contained in:
parent
5a2c5dc0b1
commit
c49d021842
@ -17,7 +17,7 @@ services:
|
|||||||
- pandora
|
- pandora
|
||||||
|
|
||||||
pandora:
|
pandora:
|
||||||
image: pandorafms/pandorafms-open-stack-el8:latest
|
image: pandorafms/pandorafms-open-stack-el8:765
|
||||||
restart: always
|
restart: always
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
|
@ -77,6 +77,11 @@ echo " /etc/init.d/pandora_websocket_engine start"
|
|||||||
#
|
#
|
||||||
if [ -f %{prefix}/pandora_console/include/config.php ] ; then
|
if [ -f %{prefix}/pandora_console/include/config.php ] ; then
|
||||||
mv %{prefix}/pandora_console/install.php %{prefix}/pandora_console/install.done
|
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
|
else
|
||||||
echo "Please, now, point your browser to http://your_IP_address/pandora_console/install.php and follow all the steps described on it."
|
echo "Please, now, point your browser to http://your_IP_address/pandora_console/install.php and follow all the steps described on it."
|
||||||
fi
|
fi
|
||||||
|
@ -58,11 +58,6 @@ fi
|
|||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%post
|
%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.
|
# Install pandora_websocket_engine service.
|
||||||
cp -pf %{prefix}/pandora_console/pandora_websocket_engine /etc/init.d/
|
cp -pf %{prefix}/pandora_console/pandora_websocket_engine /etc/init.d/
|
||||||
@ -77,6 +72,11 @@ echo " /etc/init.d/pandora_websocket_engine start"
|
|||||||
#
|
#
|
||||||
if [ -f %{prefix}/pandora_console/include/config.php ] ; then
|
if [ -f %{prefix}/pandora_console/include/config.php ] ; then
|
||||||
mv %{prefix}/pandora_console/install.php %{prefix}/pandora_console/install.done
|
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
|
else
|
||||||
echo "Please, now, point your browser to http://your_IP_address/pandora_console/install.php and follow all the steps described on it."
|
echo "Please, now, point your browser to http://your_IP_address/pandora_console/install.php and follow all the steps described on it."
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user