mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-10-18 19:10:30 +08:00
build/release: missed updating the symlink
This commit is contained in:
committed by
Lorenz Leutgeb
parent
01f9f3fcd4
commit
8bc578bfa8
+2
-2
@@ -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 ;;
|
||||
|
||||
Reference in New Issue
Block a user