From a97a2073b6cae175b29a077c50b7278f81733ba9 Mon Sep 17 00:00:00 2001 From: Nikita Tarasov Date: Sun, 12 Mar 2017 17:04:18 +0300 Subject: [PATCH] change to relative path --- data/deploy.sh.erb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/data/deploy.sh.erb b/data/deploy.sh.erb index bfcc4fda..3166495f 100644 --- a/data/deploy.sh.erb +++ b/data/deploy.sh.erb @@ -36,6 +36,7 @@ build_path="./tmp/build-$(date +%s)$RANDOM" version="<%= next_version %>" release_path="<%= fetch(:releases_path) %>/$version" +release_relative_path="releases/$version" # Sanity check if [ -e "$build_path" ]; then @@ -75,7 +76,7 @@ fi ( echo "-----> Launching" echo "-----> Updating the <%= fetch(:current_path) %> symlink" && - <%= echo_cmd %[ln -nfs "$release_path" "#{fetch(:current_path)}"] %> + <%= echo_cmd %[ln -nfs "$release_relative_path" "current"] %> ) && # ============================ @@ -109,7 +110,7 @@ fi ) ( echo "Unlinking current" - [ -n "$previous_path" ] && <%= echo_cmd %[ln -nfs "$previous_path" "#{fetch(:current_path)}"] %> + [ -n "$previous_path" ] && <%= echo_cmd %[ln -nfs "$previous_path" "current"] %> ) # Unlock