2022-08-11 09:27:35 +00:00
|
|
|
#!/usr/bin/env bash
|
2022-08-11 18:09:53 +00:00
|
|
|
set -e
|
2022-08-11 09:27:35 +00:00
|
|
|
|
|
|
|
ARCH=`uname -m`
|
|
|
|
|
|
|
|
case ${ARCH} in
|
|
|
|
"x86_64")
|
|
|
|
SUFFIX=amd64
|
|
|
|
;;
|
|
|
|
"aarch64")
|
|
|
|
SUFFIX=arm64
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
SUFFIX=ppc64le
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
echo "download plugins for arch ${SUFFIX}"
|
|
|
|
|
2023-06-25 16:57:30 +00:00
|
|
|
for PLUGIN in geoipfilter kms pubsub eventstore eventsearch metadata auth
|
2022-08-11 09:27:35 +00:00
|
|
|
do
|
|
|
|
echo "download plugin from https://github.com/sftpgo/sftpgo-plugin-${PLUGIN}/releases/latest/download/sftpgo-plugin-${PLUGIN}-linux-${SUFFIX}"
|
|
|
|
curl -L "https://github.com/sftpgo/sftpgo-plugin-${PLUGIN}/releases/latest/download/sftpgo-plugin-${PLUGIN}-linux-${SUFFIX}" --output "/usr/local/bin/sftpgo-plugin-${PLUGIN}"
|
|
|
|
chmod 755 "/usr/local/bin/sftpgo-plugin-${PLUGIN}"
|
|
|
|
done
|