SHA256
install client binary instead of cp
This commit is contained in:
@@ -149,8 +149,8 @@ function install_proxmox_backup_client() {
|
|||||||
echo "Info: extracting $pkgfile ..."
|
echo "Info: extracting $pkgfile ..."
|
||||||
! dpkg-deb -x "$TMPDIR/$pkgfile" "$TMPDIR/" && echo "Error extracting file!" >&2 && return 50
|
! dpkg-deb -x "$TMPDIR/$pkgfile" "$TMPDIR/" && echo "Error extracting file!" >&2 && return 50
|
||||||
|
|
||||||
echo "Info: copying proxmox-backup-client static binary to $PBC ..."
|
echo "Info: installing proxmox-backup-client static binary to $PBC ..."
|
||||||
! cp "$TMPDIR/usr/bin/proxmox-backup-client" "$PBC" && echo "Error copying binary!" >&2 && return 60
|
! install -m 0755 -D "$TMPDIR/usr/bin/proxmox-backup-client" "$PBC" && echo "Error installing binary!" >&2 && return 60
|
||||||
|
|
||||||
version=$(pbc-version) || return $?
|
version=$(pbc-version) || return $?
|
||||||
$update && action='updated' || action='installed'
|
$update && action='updated' || action='installed'
|
||||||
|
|||||||
Reference in New Issue
Block a user