aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-installer/install.d/30php.sh
diff options
context:
space:
mode:
authorM.Gergo2018-03-28 20:48:05 +0200
committerM.Gergo2018-03-28 20:48:05 +0200
commitcf30dceb15fa65f503c2a3f31f95b08ce1c65d35 (patch)
tree3d51eabdf4c9bc7a3daca03d265c052fb0601ac2 /mayor-installer/install.d/30php.sh
parent20a9412f1f5bc7b7e40ffb24e262cdf20420983c (diff)
downloadmayor-cf30dceb15fa65f503c2a3f31f95b08ce1c65d35.tar.gz
mayor-cf30dceb15fa65f503c2a3f31f95b08ce1c65d35.zip
installer javítás 1
Diffstat (limited to 'mayor-installer/install.d/30php.sh')
-rwxr-xr-xmayor-installer/install.d/30php.sh23
1 files changed, 17 insertions, 6 deletions
diff --git a/mayor-installer/install.d/30php.sh b/mayor-installer/install.d/30php.sh
index 49000c68..5f751018 100755
--- a/mayor-installer/install.d/30php.sh
+++ b/mayor-installer/install.d/30php.sh
@@ -15,14 +15,25 @@ EOF
read -n 1 -p "A php.ini-t módosíthatom? (i/N)" -s DO
if [ "$DO" != "i" ]; then echo -e "\nNem módosítom a php.ini-t.\n"; exit 1; fi
-exit 1
-echo -n " A PHP memória limit beállítása: "
-if [ ! -e /etc/php5/apache2/php.ini.mayor ]; then
- mv /etc/php5/apache2/php.ini /etc/php5/apache2/php.ini.mayor
+if [[ "x${RELEASE}" =~ ^x9.* ]]; then
+
+ if [ ! -e /etc/php/7.0/apache2/php.ini.mayor ]; then
+ cp /etc/php/7.0/apache2/php.ini /etc/php/7.0/apache2/php.ini.mayor
+ fi
+ cat /etc/php/7.0/apache2/php.ini.mayor | sed "s/memory_limit/memory_limit = 256M ; old value: /" > /etc/php/7.0/apache2/php.ini
+ echo -e "256M"
+
+else
+
+ echo -n " A PHP memória limit beállítása: "
+ if [ ! -e /etc/php5/apache2/php.ini.mayor ]; then
+ cp /etc/php5/apache2/php.ini /etc/php5/apache2/php.ini.mayor
+ fi
+
+ cat /etc/php5/apache2/php.ini.mayor | sed "s/memory_limit/memory_limit = 256M ; old value: /" > /etc/php5/apache2/php.ini
+ echo -e "256M"
fi
-cat /etc/php5/apache2/php.ini.mayor | sed "s/memory_limit/memory_limit = 256M ; old value: /" > /etc/php5/apache2/php.ini
-echo 256M
echo " Az web szerver újraindítása"
/etc/init.d/apache2 restart