#make CrashPlan log entry echo “I ${TIMESTAMP} Synology repairing upgrade in ${SCRIPT_HOME}” >> ${DLOG}
mv ${SCRIPT_HOME}/upgrade.log ${SCRIPT_HOME}/upgrade.log.old
UPGRADE_VER=echo ${SCRIPT_HOME} | sed -r "s/^.*\/([0-9]+)\.[0-9]+/\1/"
unzip -o ${OPTDIR}/upgrade/${UPGRADE_VER}.jar “.jar” -d ${OPTDIR}/lib/
unzip -o ${OPTDIR}/upgrade/${UPGRADE_VER}.jar “lang/” -d ${OPTDIR}
mv ${SCRIPT_HOME}/upgrade.sh ${SCRIPT_HOME}/upgrade.sh.old
exit 0
fi
#updates may also overwrite our native binaries [ -e ${OPTDIR}/bin/libffi.so.5 ] && cp -fp ${SYNOPKG_PKGDEST}/bin/libffi.so.5 ${OPTDIR}/lib [ -e ${OPTDIR}/bin/libjtux.so ] && cp -fp ${OPTDIR}/bin/libjtux.so ${OPTDIR}/ # for some reason only version 3.2.5 of jna.jar is working and not 4.1.0 mv ${OPTDIR}/lib/jna.jar ${OPTDIR}/lib/jna.jar.save cp -fp ${OPTDIR}/bin/jna-3.2.5.jar ${OPTDIR}/lib
comments powered by Disqus