projects
/
php5-cn.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r3: * postinst - provjera postojanosti direktorija apache, apache2,
[php5-cn.git]
/
debian
/
postinst
diff --git
a/debian/postinst
b/debian/postinst
index
4d73590
..
397757c
100755
(executable)
--- a/
debian/postinst
+++ b/
debian/postinst
@@
-112,10
+112,14
@@
done
#
for SAPI in apache apache2 cgi cli; do
#
for SAPI in apache apache2 cgi cli; do
+ if [ ! -d "$PHP5DIR/$SAPI" ]; then
+ continue
+ fi
+
ini_file="$PHP5DIR/$SAPI/php.ini"
cp_echo "CN: Checking and enabling some CARNet specific parameters in file $ini_file"
ini_file="$PHP5DIR/$SAPI/php.ini"
cp_echo "CN: Checking and enabling some CARNet specific parameters in file $ini_file"
-
+
if [ -f "$ini_file" ]; then
cp_check_and_sed "^[[:space:]]*upload_max_filesize[[:space:]]*=[[:space:]]*2M$" \
if [ -f "$ini_file" ]; then
cp_check_and_sed "^[[:space:]]*upload_max_filesize[[:space:]]*=[[:space:]]*2M$" \