build/release: missed updating the symlink
This commit is contained in:
parent
01f9f3fcd4
commit
8bc578bfa8
|
|
@ -12,7 +12,7 @@ SSH_KEY="$(rad path)/keys/radicle"
|
|||
|
||||
main() {
|
||||
version="$1"
|
||||
destination="/var/www/files.radicle.xyz/releases/$version"
|
||||
destination="/var/www/files.radicle.xyz/releases"
|
||||
|
||||
if [ -z "$version" ]; then
|
||||
echo "fatal: empty version number" >&2 ; exit 1
|
||||
|
|
@ -29,7 +29,7 @@ main() {
|
|||
case "$confirmation" in
|
||||
[Yy]*)
|
||||
echo "Creating 'latest' symlink.."
|
||||
ssh -i "$SSH_KEY" "$SSH_ADDRESS" ln -snf "$destination/$version" /mnt/radicle/files/releases/latest ;;
|
||||
ssh -i "$SSH_KEY" "$SSH_ADDRESS" ln -snf "$destination/$version" "$destination/latest" ;;
|
||||
*)
|
||||
echo "Operation aborted."
|
||||
exit 1 ;;
|
||||
|
|
|
|||
Loading…
Reference in New Issue