kstrano 0.0.13 → 0.0.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/kstrano.rb +2 -1
  2. metadata +1 -1
data/lib/kstrano.rb CHANGED
@@ -306,6 +306,7 @@ after :deploy do
306
306
  deploy::cleanup ## cleanup old releases
307
307
  kuma::fixcron
308
308
  serverproject = domain.split('.')[0]
309
- sudo "echo \"<?php if (in_array(@$_SERVER['REMOTE_ADDR'], array('127.0.0.1', '::1'))) { apc_clear_cache(); apc_clear_cache('user'); apc_clear_cache('opcode'); echo json_encode(array('success' => true)); } else { die('SUPER TOP SECRET'); }\" > /home/projects/#{serverproject}/site/apcclear.php"
309
+ sudo "sh -c 'echo \"<?php if (in_array(@$_SERVER[\'REMOTE_ADDR\'], array(\'127.0.0.1\', \'::1\'))) { apc_clear_cache(); apc_clear_cache(\'user\'); apc_clear_cache(\'opcode\'); echo json_encode(array(\'success\' => true)); } else { die(\'SUPER TOP SECRET\'); }\" > /home/projects/#{serverproject}/site/apcclear.php"
310
+ sudo "chmod 777 /home/projects/#{serverproject}/site/apcclear.php"
310
311
  sudo "curl http://#{domain}/apcclear.php"
311
312
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kstrano
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: