fix: install script unpack uncloudd binary to tmp dir

This commit is contained in:
Pavel Sviderski
2025-03-03 18:38:51 +10:00
parent cdb2884e4e
commit bb51e01c5c
+2 -2
View File
@@ -122,8 +122,8 @@ install_uncloud_binaries() {
if ! curl -fsSL -o "${uncloudd_download_path}" "${uncloudd_url}"; then if ! curl -fsSL -o "${uncloudd_download_path}" "${uncloudd_url}"; then
error "Failed to download uncloudd binary." error "Failed to download uncloudd binary."
fi fi
tar -xf "${uncloudd_download_path}" tar -xf --directory "${tmp_dir}" "${uncloudd_download_path}"
if ! install ./uncloudd "${uncloudd_install_path}"; then if ! install "${tmp_dir}/uncloudd" "${uncloudd_install_path}"; then
error "Failed to install uncloud binary to ${uncloudd_install_path}" error "Failed to install uncloud binary to ${uncloudd_install_path}"
fi fi
log "✓ uncloudd binary installed: ${uncloudd_install_path}" log "✓ uncloudd binary installed: ${uncloudd_install_path}"