reorder
This commit is contained in:
parent
e49a5b6bc2
commit
be15f109e2
@ -14,6 +14,7 @@ CONFIG_PATH="/opt/qbittorrent-exporter.env"
|
|||||||
SRC_DIR="/"
|
SRC_DIR="/"
|
||||||
TMP_BIN="/tmp/qbittorrent-exporter.$$"
|
TMP_BIN="/tmp/qbittorrent-exporter.$$"
|
||||||
header_info
|
header_info
|
||||||
|
ensure_usr_local_bin_persist
|
||||||
|
|
||||||
# Get primary IP
|
# Get primary IP
|
||||||
IFACE=$(ip -4 route | awk '/default/ {print $5; exit}')
|
IFACE=$(ip -4 route | awk '/default/ {print $5; exit}')
|
||||||
@ -58,9 +59,10 @@ if [[ -f "$INSTALL_PATH" ]]; then
|
|||||||
echo -n "Update ${APP}? (y/N): "
|
echo -n "Update ${APP}? (y/N): "
|
||||||
read -r update_prompt
|
read -r update_prompt
|
||||||
if [[ "${update_prompt,,}" =~ ^(y|yes)$ ]]; then
|
if [[ "${update_prompt,,}" =~ ^(y|yes)$ ]]; then
|
||||||
msg_info "Updating ${APP}"
|
|
||||||
fetch_and_deploy_gh_release "qbittorrent-exporter" "martabal/qbittorrent-exporter"
|
fetch_and_deploy_gh_release "qbittorrent-exporter" "martabal/qbittorrent-exporter"
|
||||||
setup_go
|
setup_go
|
||||||
|
msg_info "Updating ${APP}"
|
||||||
cd /opt/qbittorrent-exporter
|
cd /opt/qbittorrent-exporter
|
||||||
/usr/local/bin/go get -d -v
|
/usr/local/bin/go get -d -v
|
||||||
cd src
|
cd src
|
||||||
@ -90,9 +92,9 @@ if ! [[ "${install_prompt,,}" =~ ^(y|yes)$ ]]; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
msg_info "Installing ${APP} on ${OS}"
|
|
||||||
fetch_and_deploy_gh_release "qbittorrent-exporter" "martabal/qbittorrent-exporter"
|
fetch_and_deploy_gh_release "qbittorrent-exporter" "martabal/qbittorrent-exporter"
|
||||||
setup_go
|
setup_go
|
||||||
|
msg_info "Installing ${APP} on ${OS}"
|
||||||
cd /opt/qbittorrent-exporter
|
cd /opt/qbittorrent-exporter
|
||||||
/usr/local/bin/go get -d -v
|
/usr/local/bin/go get -d -v
|
||||||
cd src
|
cd src
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user