projects
/
php-apcu-cn.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Prva inačica za buster
[php-apcu-cn.git]
/
debian
/
postinst
diff --git
a/debian/postinst
b/debian/postinst
index
b044bea
..
0c376be
100755
(executable)
--- a/
debian/postinst
+++ b/
debian/postinst
@@
-30,10
+30,10
@@
esac
# Import CN toolsa
. /usr/share/carnet-tools/functions.sh
# 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
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
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"
apc.max_file_size=10M
EOF
cp_mv "$CONF.$$" "$CONF"
+else
+ echo "CN: $CONF not found, not enabling CARNet APC modifications"
fi
# reload Apache
fi
# reload Apache