Application dbeaver

From campisano.org
Jump to navigation Jump to search

DBeaver

Install

shared/opt install schema v1.2

su -
#### as root
# dependencies
apt-get install curl tar gzip
# binary
DESTINATION="/home/shared/opt/software"                 # Edit when needed
VERSION="6.0.4"                                         # Edit when needed
URL="https://dbeaver.io/files/${VERSION}/dbeaver-ce-${VERSION}-linux.gtk.x86_64.tar.gz"
umask 0027
mkdir -p "${DESTINATION}/tmp"
cd "${DESTINATION}/tmp"
curl -C - -kLO "${URL}"
tar -xzf "dbeaver-ce-${VERSION}-linux.gtk.x86_64.tar.gz"
cd "${DESTINATION}"
chown -R root:users "tmp"
find "tmp" -type d -exec chmod a-s,u+rwx,g+rx,g-w,o-rwx {} \;
find "tmp" -type f -exec chmod a-s,u+rw,g+r,g-w,o-rwx {} \;
mv tmp/dbeaver "dbeaver-ce-${VERSION}-linux.gtk.x86_64"
rm -rf tmp dbeaver
ln -s "dbeaver-ce-${VERSION}-linux.gtk.x86_64" dbeaver
exit
#### as final user
SOFTWARE_PATH="/home/shared/opt/software"               # Edit when needed
"${SOFTWARE_PATH}"/dbeaver/dbeaver;