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() {
|
main() {
|
||||||
version="$1"
|
version="$1"
|
||||||
destination="/var/www/files.radicle.xyz/releases/$version"
|
destination="/var/www/files.radicle.xyz/releases"
|
||||||
|
|
||||||
if [ -z "$version" ]; then
|
if [ -z "$version" ]; then
|
||||||
echo "fatal: empty version number" >&2 ; exit 1
|
echo "fatal: empty version number" >&2 ; exit 1
|
||||||
|
|
@ -29,7 +29,7 @@ main() {
|
||||||
case "$confirmation" in
|
case "$confirmation" in
|
||||||
[Yy]*)
|
[Yy]*)
|
||||||
echo "Creating 'latest' symlink.."
|
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."
|
echo "Operation aborted."
|
||||||
exit 1 ;;
|
exit 1 ;;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue