From 3ec648d04e47edfe42736609a442b59ad44617b4 Mon Sep 17 00:00:00 2001 From: Mitesh Shah Date: Mon, 22 Jul 2013 17:40:56 +0530 Subject: [PATCH] Fixed apc.php --- usr/local/sbin/easyengine | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/usr/local/sbin/easyengine b/usr/local/sbin/easyengine index d9adfeac..340c32b5 100755 --- a/usr/local/sbin/easyengine +++ b/usr/local/sbin/easyengine @@ -586,7 +586,13 @@ TOTALCACHENGINX() wp plugin activate w3-total-cache $NETWORKACTIVATE || OwnError "Unable To Activate W3 Total Cache Plugin" # APC Settings - cp -v /usr/share/doc/php-apc/apc.php* /var/www/$DOMAIN/htdocs/apc.php || OwnError "Unable To Copy APC" + if [ -f /usr/share/doc/php-apc/apc.php ] + then + cp -v /usr/share/doc/php-apc/apc.php /var/www/$DOMAIN/htdocs/apc.php || OwnError "Unable To Copy APC" + elif [ -f /usr/share/doc/php-apc/apc.php.gz ] + then + cp -v /usr/share/doc/php-apc/apc.php.gz /var/www/$DOMAIN/htdocs/apc.php || OwnError "Unable To Copy APC" + fi } SUPERCACHENGINX()