From ee0feebcacb67dc20c63b4475bb8405de42fdda3 Mon Sep 17 00:00:00 2001
From: Zeljko Boros <Zeljko.Boros@carnet.hr>
Date: Wed, 13 Nov 2013 10:31:40 +0100
Subject: [PATCH] Promjena lokacije apc.ini

---
 debian/changelog |    6 ++++++
 debian/postinst  |    6 ++++--
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 1adcfeb..548ce07 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+php-apc-cn (3.1.13.3) stable; urgency=low
+  
+  * Ispravka lokacije apc.ini
+
+ -- Zeljko Boros <Zeljko.Boros@CARNet.hr>  Wed, 13 Nov 2013 10:28:03 +0100
+
 php-apc-cn (3.1.13.2) stable; urgency=low
   
   * Ispravka apc.shm_size=64 -> apc.shm_size=64M
diff --git a/debian/postinst b/debian/postinst
index b044bea..0c376be 100755
--- a/debian/postinst
+++ b/debian/postinst
@@ -30,10 +30,10 @@ esac
 # Import CN toolsa
 . /usr/share/carnet-tools/functions.sh
 
-CONF=/etc/php5/conf.d/apc.ini
+CONF=/etc/php5/mods-available/apc.ini
 
 if [ -e "$CONF" ]; then
-    echo "CN: Enabling APC tuneups"
+    echo "CN: Enabling CARNet APC modifications"
     cp -a "$CONF" "$CONF.$$"
     cp-update --comment ';' php-apc-cn "$CONF.$$" <<EOF
 apc.enabled=1
@@ -48,6 +48,8 @@ apc.enable_cli=1
 apc.max_file_size=10M
 EOF
     cp_mv "$CONF.$$" "$CONF"
+else
+	echo "CN: $CONF not found, not enabling CARNet APC modifications"
 fi
 
 # reload Apache
-- 
1.7.10.4