update install commands to pull from github releases
This commit is contained in:
@@ -31,10 +31,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_${LATEST_DUPLICACY_VERSION} /usr/bin/duplicacy >> ${LOGFILE}
|
wget -a ${LOGFILE} -O /usr/bin/duplicacy https://github.com/gilbertchen/duplicacy/releases/download/v${LATEST_DUPLICACY_VERSION}/duplicacy_linux_x64_${LATEST_DUPLICACY_VERSION}
|
||||||
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_${LATEST_DUPLICACY_VERSION} /usr/bin/duplicacy >> ${LOGFILE}
|
wget -a ${LOGFILE} -O /usr/bin/duplicacy https://github.com/gilbertchen/duplicacy/releases/download/v${LATEST_DUPLICACY_VERSION}/duplicacy_linux_arm64_${LATEST_DUPLICACY_VERSION}
|
||||||
chmod +x /usr/bin/duplicacy >> ${LOGFILE}
|
chmod +x /usr/bin/duplicacy >> ${LOGFILE}
|
||||||
else
|
else
|
||||||
echo "Kernel Type: ${KERNEL}"
|
echo "Kernel Type: ${KERNEL}"
|
||||||
@@ -44,7 +44,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_${LATEST_DUPLICACY_VERSION} /usr/bin/duplicacy >> ${LOGFILE}
|
wget -a ${LOGFILE} -O /usr/bin/duplicacy https://github.com/gilbertchen/duplicacy/releases/download/v${LATEST_DUPLICACY_VERSION}/duplicacy_freebsd_x64_${LATEST_DUPLICACY_VERSION}
|
||||||
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