Created
August 9, 2022 19:02
-
-
Save almightyju/698f2d79535f4d3bf0eb49a752c0883a to your computer and use it in GitHub Desktop.
Fix Crashplan libuaw.so missing after update for linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
### Crashplan's script to detect the OS and get the appropriate lib from the nlib folder doesn't always work | |
### so this script will download the installer and actually pull out the lib from the specified folder | |
# which folder should the nlib be taken from within the installer | |
takeNlibFromFolder=rhel8 | |
# make sure this is the install dir of crashplan | |
cd /usr/local/crashplan/ | |
### leave below alone | |
#url format : https://download.code42.com/installs/agent/cloud/10.2.1/16/install/CrashPlanSmb_10.2.1_15252000061021_16_Linux.tgz | |
source c42.version.properties | |
fName="CrashPlanSmb_${cp_version_name}_${cp_version}_${build_number}_Linux.tgz" | |
url="https://download.code42.com/installs/agent/cloud/$cp_version_name/$build_number/install/$fName" | |
mkdir tmp | |
wget $url | |
tar zxf $fName -C tmp/ | |
pushd tmp/code42-install/ | |
cpioF="CrashPlanSmb_$cp_version_name.cpi" | |
gzip -dc "${cpioF}" | cpio -i --no-preserve-owner &>/dev/null | |
popd | |
cp tmp/code42-install/nlib/${takeNlibFromFolder}/libuaw.so nlib/ | |
chmod 0744 nlib/libuaw.so | |
chown root:root nlib/libuaw.so | |
rm -rf tmp/ | |
rm -f $fName |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment