Update docspell-install.sh
This commit is contained in:
parent
deb8b15697
commit
6c38762e59
@ -15,7 +15,6 @@ update_os
|
|||||||
|
|
||||||
msg_info "Installing Dependencies (Patience)"
|
msg_info "Installing Dependencies (Patience)"
|
||||||
$STD apt-get install -y \
|
$STD apt-get install -y \
|
||||||
unzip \
|
|
||||||
htop \
|
htop \
|
||||||
gnupg2 \
|
gnupg2 \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
@ -28,12 +27,7 @@ $STD apt-get install -y \
|
|||||||
unpaper \
|
unpaper \
|
||||||
unoconv \
|
unoconv \
|
||||||
wkhtmltopdf \
|
wkhtmltopdf \
|
||||||
ocrmypdf \
|
ocrmypdf
|
||||||
zip \
|
|
||||||
curl \
|
|
||||||
sudo \
|
|
||||||
make \
|
|
||||||
mc
|
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
msg_info "Setting up PostgreSQL Repository"
|
msg_info "Setting up PostgreSQL Repository"
|
||||||
@ -65,10 +59,10 @@ mkdir -p /opt/docspell
|
|||||||
Docspell=$(curl -fsSL https://github.com/eikek/docspell/releases/latest -o - | grep "title>Release" | cut -d " " -f 5)
|
Docspell=$(curl -fsSL https://github.com/eikek/docspell/releases/latest -o - | grep "title>Release" | cut -d " " -f 5)
|
||||||
DocspellDSC=$(curl -fsSL https://github.com/docspell/dsc/releases/latest -o - | grep "title>Release" | cut -d " " -f 4 | sed 's/^v//')
|
DocspellDSC=$(curl -fsSL https://github.com/docspell/dsc/releases/latest -o - | grep "title>Release" | cut -d " " -f 4 | sed 's/^v//')
|
||||||
cd /opt
|
cd /opt
|
||||||
curl -fsSL https://github.com/eikek/docspell/releases/download/v${Docspell}/docspell-joex_${Docspell}_all.deb
|
curl -fsSL https://github.com/eikek/docspell/releases/download/v${Docspell}/docspell-joex_${Docspell}_all.deb -o docspell-joex_${Docspell}_all.deb
|
||||||
curl -fsSL https://github.com/eikek/docspell/releases/download/v${Docspell}/docspell-restserver_${Docspell}_all.deb
|
curl -fsSL https://github.com/eikek/docspell/releases/download/v${Docspell}/docspell-restserver_${Docspell}_all.deb -o docspell-restserver_${Docspell}_all.deb
|
||||||
$STD dpkg -i docspell-*.deb
|
$STD dpkg -i docspell-*.deb
|
||||||
curl -fsSL https://github.com/docspell/dsc/releases/download/v${DocspellDSC}/dsc_amd64-musl-${DocspellDSC}
|
curl -fsSL https://github.com/docspell/dsc/releases/download/v${DocspellDSC}/dsc_amd64-musl-${DocspellDSC} -o dsc_amd64-musl-${DocspellDSC}
|
||||||
mv dsc_amd* dsc
|
mv dsc_amd* dsc
|
||||||
chmod +x dsc
|
chmod +x dsc
|
||||||
mv dsc /usr/bin
|
mv dsc /usr/bin
|
||||||
@ -102,9 +96,9 @@ msg_ok "Setup Docspell"
|
|||||||
msg_info "Setup Apache Solr"
|
msg_info "Setup Apache Solr"
|
||||||
cd /opt/docspell
|
cd /opt/docspell
|
||||||
SOLR_DOWNLOAD_URL="https://downloads.apache.org/lucene/solr/"
|
SOLR_DOWNLOAD_URL="https://downloads.apache.org/lucene/solr/"
|
||||||
latest_version=$(curl -s "$SOLR_DOWNLOAD_URL" | grep -oP '(?<=<a href=")[^"]+(?=/">[0-9])' | head -n 1)
|
latest_version=$(curl -fsSL "$SOLR_DOWNLOAD_URL" | grep -oP '(?<=<a href=")[^"]+(?=/">[0-9])' | head -n 1)
|
||||||
download_url="${SOLR_DOWNLOAD_URL}${latest_version}/solr-${latest_version}.tgz"
|
download_url="${SOLR_DOWNLOAD_URL}${latest_version}/solr-${latest_version}.tgz"
|
||||||
curl -fsSL "$download_url"
|
curl -fsSL "$download_url" -o "solr-$latest_version.tgz"
|
||||||
tar xzf "solr-$latest_version.tgz"
|
tar xzf "solr-$latest_version.tgz"
|
||||||
$STD bash "/opt/docspell/solr-$latest_version/bin/install_solr_service.sh" "solr-$latest_version.tgz"
|
$STD bash "/opt/docspell/solr-$latest_version/bin/install_solr_service.sh" "solr-$latest_version.tgz"
|
||||||
mv /opt/solr /opt/docspell/solr
|
mv /opt/solr /opt/docspell/solr
|
||||||
|
Loading…
x
Reference in New Issue
Block a user