aboutsummaryrefslogtreecommitdiff
path: root/src/infrastructure/scripts/reconfigure.sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-03-20 12:19:55 -0300
committerEuAndreh <eu@euandre.org>2023-03-20 12:24:13 -0300
commitf08f43955a72ddf1584cd2109f5fbd1288aa93f9 (patch)
treebe3b155b29c0cffb291a0c801df91e1886fba515 /src/infrastructure/scripts/reconfigure.sh
parentsystem.scm: Move nginx /r/velhinho config to the beginning of the list (diff)
downloadserver-f08f43955a72ddf1584cd2109f5fbd1288aa93f9.tar.gz
server-f08f43955a72ddf1584cd2109f5fbd1288aa93f9.tar.xz
reconfigure.sh: Make "current" a relative symlink
Diffstat (limited to 'src/infrastructure/scripts/reconfigure.sh')
-rwxr-xr-xsrc/infrastructure/scripts/reconfigure.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/infrastructure/scripts/reconfigure.sh b/src/infrastructure/scripts/reconfigure.sh
index c76ea3e..51c7de8 100755
--- a/src/infrastructure/scripts/reconfigure.sh
+++ b/src/infrastructure/scripts/reconfigure.sh
@@ -112,7 +112,7 @@ fi
set -x
sudo -u deployer git clone --depth=1 "file://$REPO" "$NOW_DIR"
sudo -u deployer rm -f /opt/deploy/current
-sudo -u deployer ln -s "$NOW_DIR" /opt/deploy/current
+sudo -u deployer ln -rs "$NOW_DIR" /opt/deploy/current
cd /opt/deploy/current
sudo -u deployer git fetch --depth=1 "file://$REPO" "$SHA"
sudo -u deployer --preserve-env=GIT_CONFIG_GLOBAL git checkout "$SHA"