-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor scripts, 7zip path detection in app, added better check for …
…mariadb/psql clients installation
- Loading branch information
Showing
14 changed files
with
136 additions
and
298 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
######################################################################### | ||
# 7ZIP DOWNLOAD FOR ARM64 AND AMD64 | ||
# | ||
# https://www.7-zip.org/download.html | ||
######################################################################### | ||
|
||
AMD64_DIR="$SCRIPT_DIR/../bin/7zip/amd64" | ||
AMD64_7ZZ="$AMD64_DIR/7zz" | ||
|
||
ARM64_DIR="$SCRIPT_DIR/../bin/7zip/arm64" | ||
ARM64_7ZZ="$ARM64_DIR/7zz" | ||
|
||
if [ -f "$AMD64_7ZZ" ] | ||
then | ||
echo "$AMD64_7ZZ exists" | ||
else | ||
mkdir -p $AMD64_DIR | ||
cd $AMD64_DIR | ||
wget --quiet "https://www.7-zip.org/a/7z2301-linux-x64.tar.xz" | ||
tar -xf "7z2301-linux-x64.tar.xz" | ||
rm -f "7z2301-linux-x64.tar.xz" | ||
fi | ||
|
||
if [ -f "$ARM64_7ZZ" ] | ||
then | ||
echo "$ARM64_7ZZ exists" | ||
else | ||
mkdir -p $ARM64_DIR | ||
cd $ARM64_DIR | ||
wget --quiet "https://www.7-zip.org/a/7z2301-linux-arm64.tar.xz" | ||
tar -xf "7z2301-linux-arm64.tar.xz" | ||
rm -f "7z2301-linux-arm64.tar.xz" | ||
fi |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
######################################################################### | ||
# MARIADB CLIENT INSTALLATION | ||
# | ||
# https://mariadb.com/kb/en/mariadb-package-repository-setup-and-usage/ | ||
######################################################################### | ||
|
||
echo "Installing mariadb-client with ready script" | ||
curl -LsS https://r.mariadb.com/downloads/mariadb_repo_setup | bash | ||
apt-get -y update && apt-get -y install mariadb-client | ||
echo "mariadb-client installed" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
######################################################################### | ||
# POSTGRES CLIENT INSTALLATION | ||
# | ||
# https://www.postgresql.org/download/linux/debian/ | ||
# Note apt-key is considered unsecure and signed-by used as a replacement | ||
######################################################################### | ||
|
||
CPU="$(dpkg --print-architecture)" | ||
DISTR="$(awk -F= '/^ID=/{print $2}' /etc/os-release)" | ||
DISTR_VERSION="$(awk -F= '/^VERSION_CODENAME=/{print $2}' /etc/os-release)" | ||
|
||
echo "Installing postgresql-client-15" | ||
|
||
mkdir -p /usr/share/keyrings/ | ||
if [ -f "/usr/share/keyrings/www.postgresql.org.gpg" ] | ||
then | ||
echo "/usr/share/keyrings/www.postgresql.org.gpg exists" | ||
else | ||
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor -o /usr/share/keyrings/www.postgresql.org.gpg | ||
fi | ||
if [ -f "/etc/apt/sources.list.d/pgdg.list" ] | ||
then | ||
echo "/etc/apt/sources.list.d/pgdg.list exists" | ||
else | ||
echo "deb [signed-by=/usr/share/keyrings/www.postgresql.org.gpg arch=$CPU] http://apt.postgresql.org/pub/repos/apt $DISTR_VERSION-pgdg main" > /etc/apt/sources.list.d/pgdg.list | ||
fi | ||
apt-get -y update && apt-get -y install postgresql-client-15 | ||
echo "postgresql-client-15 installed" |
Oops, something went wrong.