From a4480b3da0c8703bd41ad1797fc16440aa31f70b Mon Sep 17 00:00:00 2001 From: tremor021 Date: Mon, 24 Mar 2025 13:56:58 +0100 Subject: [PATCH] MickLesk noob --- ct/Deferred/nginxproxymanager.sh | 2 +- ct/calibre-web-automated.sh | 2 +- ct/fileflows.sh | 2 +- ct/meilisearch.sh | 4 ++-- ct/qbittorrent.sh | 2 +- ct/slskd.sh | 2 +- install/calibre-web-automated-install.sh | 2 +- install/docspell-install.sh | 6 +++--- install/fileflows-install.sh | 4 ++-- install/frigate-install.sh | 2 +- install/meilisearch-install.sh | 6 +++--- install/qbittorrent-install.sh | 2 +- install/slskd-install.sh | 2 +- 13 files changed, 19 insertions(+), 19 deletions(-) diff --git a/ct/Deferred/nginxproxymanager.sh b/ct/Deferred/nginxproxymanager.sh index df50ac2..01ccfff 100644 --- a/ct/Deferred/nginxproxymanager.sh +++ b/ct/Deferred/nginxproxymanager.sh @@ -51,7 +51,7 @@ function update_script() { msg_ok "Cleaned Old Files" msg_info "Downloading NPM v${RELEASE}" - curl -fsSL https://codeload.github.com/NginxProxyManager/nginx-proxy-manager/tar.gz/v${RELEASE} -O - | tar -xz + curl -fsSL https://codeload.github.com/NginxProxyManager/nginx-proxy-manager/tar.gz/v${RELEASE} -o - | tar -xz cd nginx-proxy-manager-${RELEASE} msg_ok "Downloaded NPM v${RELEASE}" diff --git a/ct/calibre-web-automated.sh b/ct/calibre-web-automated.sh index dae78e4..1fe9576 100644 --- a/ct/calibre-web-automated.sh +++ b/ct/calibre-web-automated.sh @@ -50,7 +50,7 @@ function update_script() { $STD git stash --all $STD git pull $STD pip install -r requirements.txt - curl -fsSL https://gist.githubusercontent.com/vhsdream/2e81afeff139c5746db1ede88c01cc7b/raw/51238206e87aec6c0abeccce85dec9f2b0c89000/proxmox-lxc.patch -O /opt/cwa.patch # not for production + curl -fsSL https://gist.githubusercontent.com/vhsdream/2e81afeff139c5746db1ede88c01cc7b/raw/51238206e87aec6c0abeccce85dec9f2b0c89000/proxmox-lxc.patch -o /opt/cwa.patch # not for production $STD git apply --whitespace=fix /opt/cwa.patch # not for production cp -r /opt/cwa/root/app/calibre-web/cps/* /usr/local/lib/python3*/dist-packages/calibreweb/cps cd scripts diff --git a/ct/fileflows.sh b/ct/fileflows.sh index 7cafe68..5adc7c6 100644 --- a/ct/fileflows.sh +++ b/ct/fileflows.sh @@ -42,7 +42,7 @@ function update_script() { msg_info "Updating $APP to latest version" temp_file=$(mktemp) - curl -fsSL https://fileflows.com/downloads/zip -O $temp_file + curl -fsSL https://fileflows.com/downloads/zip -o $temp_file unzip -oq -d /opt/fileflows $temp_file msg_ok "Updated $APP to latest version" diff --git a/ct/meilisearch.sh b/ct/meilisearch.sh index 96fe45e..f50676c 100644 --- a/ct/meilisearch.sh +++ b/ct/meilisearch.sh @@ -41,7 +41,7 @@ function update_script() { msg_info "Updating Meilisearch" tmp_file=$(mktemp) RELEASE=$(curl -s https://api.github.com/repos/meilisearch/meilisearch/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') - curl -fsSL https://github.com/meilisearch/meilisearch/releases/latest/download/meilisearch.deb -O $tmp_file + curl -fsSL https://github.com/meilisearch/meilisearch/releases/latest/download/meilisearch.deb -o $tmp_file $STD dpkg -i $tmp_file echo "$RELEASE" >/opt/meilisearch_version.txt msg_ok "Updated Meilisearch" @@ -68,7 +68,7 @@ function update_script() { cp /opt/meilisearch-ui/.env.local /tmp/.env.local.bak rm -rf /opt/meilisearch-ui mkdir -p /opt/meilisearch-ui - curl -fsSL "https://github.com/riccox/meilisearch-ui/archive/refs/tags/${RELEASE_UI}.zip" -O $tmp_file + curl -fsSL "https://github.com/riccox/meilisearch-ui/archive/refs/tags/${RELEASE_UI}.zip" -o $tmp_file unzip -q "$tmp_file" -d "$tmp_dir" mv "$tmp_dir"/*/* /opt/meilisearch-ui/ cd /opt/meilisearch-ui diff --git a/ct/qbittorrent.sh b/ct/qbittorrent.sh index 867b576..a9f3f3f 100644 --- a/ct/qbittorrent.sh +++ b/ct/qbittorrent.sh @@ -45,7 +45,7 @@ function update_script() { msg_info "Updating ${APP} to v${RELEASE}" rm -f /opt/qbittorrent/qbittorrent-nox - curl -fsSL "https://github.com/userdocs/qbittorrent-nox-static/releases/download/${FULLRELEASE}/x86_64-qbittorrent-nox" -O /opt/qbittorrent/qbittorrent-nox + curl -fsSL "https://github.com/userdocs/qbittorrent-nox-static/releases/download/${FULLRELEASE}/x86_64-qbittorrent-nox" -o /opt/qbittorrent/qbittorrent-nox chmod +x /opt/qbittorrent/qbittorrent-nox echo "${RELEASE}" >/opt/${APP}_version.txt msg_ok "Updated $APP to v${RELEASE}" diff --git a/ct/slskd.sh b/ct/slskd.sh index 29b54f6..b11ebea 100644 --- a/ct/slskd.sh +++ b/ct/slskd.sh @@ -37,7 +37,7 @@ function update_script() { msg_info "Updating $APP to v${RELEASE}" tmp_file=$(mktemp) - curl -fsSL "https://github.com/slskd/slskd/releases/download/${RELEASE}/slskd-${RELEASE}-linux-x64.zip" -O $tmp_file + curl -fsSL "https://github.com/slskd/slskd/releases/download/${RELEASE}/slskd-${RELEASE}-linux-x64.zip" -o $tmp_file unzip -q -oj $tmp_file slskd -d /opt/${APP} echo "${RELEASE}" >/opt/${APP}_version.txt msg_ok "Updated $APP to v${RELEASE}" diff --git a/install/calibre-web-automated-install.sh b/install/calibre-web-automated-install.sh index 2206679..b8d88ed 100644 --- a/install/calibre-web-automated-install.sh +++ b/install/calibre-web-automated-install.sh @@ -81,7 +81,7 @@ $STD git clone https://github.com/crocodilestick/Calibre-Web-Automated.git /opt/ cd /opt/cwa $STD git checkout V${RELEASE} $STD pip install -r requirements.txt -curl -fsSL https://gist.githubusercontent.com/vhsdream/2e81afeff139c5746db1ede88c01cc7b/raw/51238206e87aec6c0abeccce85dec9f2b0c89000/proxmox-lxc.patch -O /opt/cwa.patch # not for production +curl -fsSL https://gist.githubusercontent.com/vhsdream/2e81afeff139c5746db1ede88c01cc7b/raw/51238206e87aec6c0abeccce85dec9f2b0c89000/proxmox-lxc.patch -o /opt/cwa.patch # not for production $STD git apply --whitespace=fix /opt/cwa.patch # not for production cd scripts chmod +x check-cwa-services.sh ingest-service.sh change-detector.sh diff --git a/install/docspell-install.sh b/install/docspell-install.sh index e253f0a..370477f 100644 --- a/install/docspell-install.sh +++ b/install/docspell-install.sh @@ -62,8 +62,8 @@ msg_ok "Set up PostgreSQL Database" msg_info "Setup Docspell (Patience)" mkdir -p /opt/docspell -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//') +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//') 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-restserver_${Docspell}_all.deb @@ -73,7 +73,7 @@ mv dsc_amd* dsc chmod +x dsc mv dsc /usr/bin ln -s /etc/docspell-joex /opt/docspell/docspell-joex && ln -s /etc/docspell-restserver /opt/docspell/docspell-restserver && ln -s /usr/bin/dsc /opt/docspell/dsc -curl -fsSL https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -O /usr/bin/yq +curl -fsSL https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -o /usr/bin/yq chmod +x /usr/bin/yq JOEX_CONF="/usr/share/docspell-joex/conf/docspell-joex.conf" SERVER_CONF="/usr/share/docspell-restserver/conf/docspell-server.conf" diff --git a/install/fileflows-install.sh b/install/fileflows-install.sh index a254c4a..72ce0f3 100644 --- a/install/fileflows-install.sh +++ b/install/fileflows-install.sh @@ -45,7 +45,7 @@ fi msg_ok "Installed and Set Up Intel Hardware Acceleration" msg_info "Installing ASP.NET Core Runtime" -curl -fsSL https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb -O packages-microsoft-prod.deb +curl -fsSL https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb -o packages-microsoft-prod.deb $STD dpkg -i packages-microsoft-prod.deb rm -rf packages-microsoft-prod.deb $STD apt-get update @@ -56,7 +56,7 @@ msg_info "Setup ${APPLICATION}" $STD ln -svf /usr/bin/ffmpeg /usr/local/bin/ffmpeg $STD ln -svf /usr/bin/ffprobe /usr/local/bin/ffprobe temp_file=$(mktemp) -curl -fsSL https://fileflows.com/downloads/zip -O $temp_file +curl -fsSL https://fileflows.com/downloads/zip -o $temp_file unzip -q -d /opt/fileflows $temp_file (cd /opt/fileflows/Server && dotnet FileFlows.Server.dll --systemd install --root true) systemctl enable -q --now fileflows.service diff --git a/install/frigate-install.sh b/install/frigate-install.sh index bcd44e9..fedb5d5 100644 --- a/install/frigate-install.sh +++ b/install/frigate-install.sh @@ -56,7 +56,7 @@ msg_ok "Set Up Hardware Acceleration" msg_info "Setup Frigate" RELEASE=$(curl -s https://api.github.com/repos/blakeblackshear/frigate/releases/latest | jq -r '.tag_name') mkdir -p /opt/frigate/models -curl -fsSL https://github.com/blakeblackshear/frigate/archive/refs/tags/${RELEASE}.tar.gz -O frigate.tar.gz +curl -fsSL https://github.com/blakeblackshear/frigate/archive/refs/tags/${RELEASE}.tar.gz -o frigate.tar.gz tar -xzf frigate.tar.gz -C /opt/frigate --strip-components 1 rm -rf frigate.tar.gz cd /opt/frigate diff --git a/install/meilisearch-install.sh b/install/meilisearch-install.sh index 830ac08..258ff10 100644 --- a/install/meilisearch-install.sh +++ b/install/meilisearch-install.sh @@ -24,9 +24,9 @@ msg_ok "Installed Dependencies" msg_info "Setup ${APPLICATION}" tmp_file=$(mktemp) RELEASE=$(curl -s https://api.github.com/repos/meilisearch/meilisearch/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') -curl -fsSL https://github.com/meilisearch/meilisearch/releases/latest/download/meilisearch.deb -O $tmp_file +curl -fsSL https://github.com/meilisearch/meilisearch/releases/latest/download/meilisearch.deb -o $tmp_file $STD dpkg -i $tmp_file -curl -fsSL https://raw.githubusercontent.com/meilisearch/meilisearch/latest/config.toml -O /etc/meilisearch.toml +curl -fsSL https://raw.githubusercontent.com/meilisearch/meilisearch/latest/config.toml -o /etc/meilisearch.toml MASTER_KEY=$(openssl rand -base64 12) LOCAL_IP="$(hostname -I | awk '{print $1}')" sed -i \ @@ -60,7 +60,7 @@ if [[ ${prompt,,} =~ ^(y|yes)$ ]]; then tmp_dir=$(mktemp -d) mkdir -p /opt/meilisearch-ui RELEASE_UI=$(curl -s https://api.github.com/repos/riccox/meilisearch-ui/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') - curl -fsSL "https://github.com/riccox/meilisearch-ui/archive/refs/tags/${RELEASE_UI}.zip" -O $tmp_file + curl -fsSL "https://github.com/riccox/meilisearch-ui/archive/refs/tags/${RELEASE_UI}.zip" -o $tmp_file unzip -q "$tmp_file" -d "$tmp_dir" mv "$tmp_dir"/*/* /opt/meilisearch-ui/ cd /opt/meilisearch-ui diff --git a/install/qbittorrent-install.sh b/install/qbittorrent-install.sh index ceacfdc..bc302dd 100644 --- a/install/qbittorrent-install.sh +++ b/install/qbittorrent-install.sh @@ -24,7 +24,7 @@ msg_info "Setup qBittorrent-nox" FULLRELEASE=$(curl -s https://api.github.com/repos/userdocs/qbittorrent-nox-static/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') RELEASE=$(echo $RELEASE | cut -c 9-13) mkdir -p /opt/qbittorrent -curl -fsSL "https://github.com/userdocs/qbittorrent-nox-static/releases/download/${FULLRELEASE}/x86_64-qbittorrent-nox -O /opt/qbittorrent/qbittorrent-nox" +curl -fsSL "https://github.com/userdocs/qbittorrent-nox-static/releases/download/${FULLRELEASE}/x86_64-qbittorrent-nox -o /opt/qbittorrent/qbittorrent-nox" chmod +x /opt/qbittorrent/qbittorrent-nox mkdir -p $HOME/.config/qBittorrent/ cat <$HOME/.config/qBittorrent/qBittorrent.conf diff --git a/install/slskd-install.sh b/install/slskd-install.sh index 984056c..ea88bbd 100644 --- a/install/slskd-install.sh +++ b/install/slskd-install.sh @@ -25,7 +25,7 @@ msg_ok "Installed Dependencies" msg_info "Setup ${APPLICATION}" tmp_file=$(mktemp) RELEASE=$(curl -s https://api.github.com/repos/slskd/slskd/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') -curl -fsSL "https://github.com/slskd/slskd/releases/download/${RELEASE}/slskd-${RELEASE}-linux-x64.zip" -O $tmp_file +curl -fsSL "https://github.com/slskd/slskd/releases/download/${RELEASE}/slskd-${RELEASE}-linux-x64.zip" -o $tmp_file unzip -q $tmp_file -d /opt/${APPLICATION} echo "${RELEASE}" >/opt/${APPLICATION}_version.txt JWT_KEY=$(openssl rand -base64 44)