aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-installer/install.d/30php.sh
diff options
context:
space:
mode:
authorM.Gergo2018-07-06 11:13:06 +0200
committerM.Gergo2018-07-06 11:13:06 +0200
commit50310b0e4513ee3fcce67351ae61e8fff851130e (patch)
treefd2e4a73f94a61cd5040f863579149ed97c701a3 /mayor-installer/install.d/30php.sh
parent630f5353ed7a264b0fa17badd62f71a02265a4f7 (diff)
downloadmayor-50310b0e4513ee3fcce67351ae61e8fff851130e.tar.gz
mayor-50310b0e4513ee3fcce67351ae61e8fff851130e.zip
Mappák átnevezve: mayor --> mayor-mod; mayor-installer --> mayor-installer-mod; mayor-installer-fcgi --> mayor-installer-fcgi-mod
Diffstat (limited to 'mayor-installer/install.d/30php.sh')
-rwxr-xr-xmayor-installer/install.d/30php.sh40
1 files changed, 0 insertions, 40 deletions
diff --git a/mayor-installer/install.d/30php.sh b/mayor-installer/install.d/30php.sh
deleted file mode 100755
index 5f751018..00000000
--- a/mayor-installer/install.d/30php.sh
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/bin/bash
-#
-
-cat <<EOF
-A PHP memória limit beállítása
-
-Az alapértelmezett 16MB-os memória a rendszer futtatásához a
-legtöbb esetben elég, de egyes esetekben (például a nyomtatványok
-generálásakor) kevésnek bizonyul. Ezért a telepítő ezt a küszöböt
-256MB-ra emeli. Az eredeti php.ini állományról másolat készül
-php.ini.mayor néven.
-
-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
-
-
-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
-
-echo " Az web szerver újraindítása"
-/etc/init.d/apache2 restart
-