lbhrr 2.35.0 → 2.36.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/exe/lbhrr +1 -1
  3. data/lib/lbhrr/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9769f0f3caa1bb6fc176e9dd1f91d03332b1dc0af926823359a120c85655a45b
4
- data.tar.gz: 1394802e202084302003f6f84728b4b09acdb7ec32557827d3257aa27f2f1486
3
+ metadata.gz: beca5e85f59edc73f2961d757298f923cca445aeba9d285d40d12e145bdbd5c2
4
+ data.tar.gz: f9472aee7667f0837a61b822867d16b6e5271966c1ca0fa9ed50f12b77c59a99
5
5
  SHA512:
6
- metadata.gz: 40c0d634d96ed343960cdbac4846c9fba941b05f5eb2b4738190c847501462ed1b79a5502ab030a30f54679fbb2d0885445ffc581a44d0dcf813ca895c62ef7b
7
- data.tar.gz: edb6bf13c274974985ad77eb5b5f9dcac51b90b26b3ca46e804c1d689b1af89d4a5d649566051bb916bfa47ad0cee1eb45e1a112af0c9c2acabc81a8fc319e9e
6
+ metadata.gz: 34d44da532f7c15df6b0b5aabc8a8d59d597b170176d3091cd70aadb622762e51aca53a6890a1d98d827a762d9b0aae1be10f52fa52201051ca8db28bb472488
7
+ data.tar.gz: 8c26fb2b6ba57ce2186be2a913ec6b3005ad09d84a909dd7f8f9c4e26ffae9ca7bee098a7dcbd61920b842216f2c2f72354926898f6249ab54306962f7c866d8
data/exe/lbhrr CHANGED
@@ -481,7 +481,7 @@ class LbhrrCLI < Thor
481
481
  puts "No deploymnt available"
482
482
  else
483
483
  `lxc exec #{name} -- bash -c 'if [ -d /var/www/app/container/rollback ]; then rm -rf /var/www/app/container/rollback; fi'`
484
- `lxc exec #{name} -- mv /var/www/app/container/live /var/www/app/container/rollback`
484
+ `lxc exec #{name} -- [ -d "/var/www/app/container/live" ] && mv /var/www/app/container/live /var/www/app/container/rollback`
485
485
  `lxc exec #{name} -- [ -d "/var/www/app/container/next" ] && cp -r /var/www/app/container/next /var/www/app/container/live`
486
486
  `lxc exec #{name} -- sv restart live`
487
487
  `lxc exec #{name} -- sv restart ws`
data/lib/lbhrr/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Lbhrr
4
- VERSION = "2.35.0"
4
+ VERSION = "2.36.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lbhrr
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.35.0
4
+ version: 2.36.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Delaney Kuldvee Burke