update the binaries to use variable for version
This commit is contained in:
@@ -28,10 +28,10 @@ if [ ${LATEST_DUPLICACY_VERSION} != ${INSTALLED_DUPLICACY_VERSION} ] || [ ! -e '
|
|||||||
ARCH=$(uname -m)
|
ARCH=$(uname -m)
|
||||||
if [ ${KERNEL} == 'Linux' ]; then
|
if [ ${KERNEL} == 'Linux' ]; then
|
||||||
if [ ${ARCH} == 'x86_64' ]; then
|
if [ ${ARCH} == 'x86_64' ]; then
|
||||||
cp -v $(dirname "$0")/binaries/duplicacy_linux_x64_2.6.1 /usr/bin/duplicacy >> ${LOGFILE}
|
cp -v $(dirname "$0")/binaries/duplicacy_linux_x64_${LATEST_DUPLICACY_VERSION} /usr/bin/duplicacy >> ${LOGFILE}
|
||||||
chmod +x /usr/bin/duplicacy >> ${LOGFILE}
|
chmod +x /usr/bin/duplicacy >> ${LOGFILE}
|
||||||
elif [ ${ARCH} == 'aarch64' ]; then
|
elif [ ${ARCH} == 'aarch64' ]; then
|
||||||
cp -v $(dirname "$0")/binaries/duplicacy_linux_arm64_2.6.1 /usr/bin/duplicacy >> ${LOGFILE}
|
cp -v $(dirname "$0")/binaries/duplicacy_linux_arm64_${LATEST_DUPLICACY_VERSION} /usr/bin/duplicacy >> ${LOGFILE}
|
||||||
chmod +x /usr/bin/duplicacy >> ${LOGFILE}
|
chmod +x /usr/bin/duplicacy >> ${LOGFILE}
|
||||||
else
|
else
|
||||||
echo "Kernel Type: ${KERNEL}"
|
echo "Kernel Type: ${KERNEL}"
|
||||||
@@ -41,7 +41,7 @@ if [ ${LATEST_DUPLICACY_VERSION} != ${INSTALLED_DUPLICACY_VERSION} ] || [ ! -e '
|
|||||||
fi
|
fi
|
||||||
elif [ ${KERNEL} == 'FreeBSD' ]; then
|
elif [ ${KERNEL} == 'FreeBSD' ]; then
|
||||||
if [ ${ARCH} == 'amd64' ]; then
|
if [ ${ARCH} == 'amd64' ]; then
|
||||||
cp -v $(dirname "$0")/binaries/duplicacy_freebsd_x64_2.6.1 /usr/bin/duplicacy >> ${LOGFILE}
|
cp -v $(dirname "$0")/binaries/duplicacy_freebsd_x64_${LATEST_DUPLICACY_VERSION} /usr/bin/duplicacy >> ${LOGFILE}
|
||||||
chmod +x /usr/bin/duplicacy >> ${LOGFILE}
|
chmod +x /usr/bin/duplicacy >> ${LOGFILE}
|
||||||
else
|
else
|
||||||
echo "Kernel Type: ${KERNEL}"
|
echo "Kernel Type: ${KERNEL}"
|
||||||
|
|||||||
Reference in New Issue
Block a user