diff options
author | EuAndreh <eu@euandre.org> | 2023-03-20 12:19:55 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2023-03-20 12:24:13 -0300 |
commit | f08f43955a72ddf1584cd2109f5fbd1288aa93f9 (patch) | |
tree | be3b155b29c0cffb291a0c801df91e1886fba515 /src | |
parent | system.scm: Move nginx /r/velhinho config to the beginning of the list (diff) | |
download | server-f08f43955a72ddf1584cd2109f5fbd1288aa93f9.tar.gz server-f08f43955a72ddf1584cd2109f5fbd1288aa93f9.tar.xz |
reconfigure.sh: Make "current" a relative symlink
Diffstat (limited to 'src')
-rwxr-xr-x | src/infrastructure/scripts/reconfigure.sh | 2 |
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" |