From 19b184a5047a8af4c2a3e6490ef89784abc25384 Mon Sep 17 00:00:00 2001 From: ulmentflam Date: Sat, 15 Jun 2024 16:59:12 -0400 Subject: [PATCH] Updating paths --- ct/fooocus.sh | 5 ++--- install/fooocus-install.sh | 6 +++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/ct/fooocus.sh b/ct/fooocus.sh index c0a6eb7f..7f5b16f3 100644 --- a/ct/fooocus.sh +++ b/ct/fooocus.sh @@ -75,9 +75,8 @@ if [ "$UPD" == "1" ]; then msg_info "Updating $APP to $RELEASE" systemctl stop fooocus.service cd ~ || msg_error "Failed to change directory" - wget -q https://github.com/lllyasviel/Fooocus/archive/refs/tags/${RELEASE}.tar.gz - # shellcheck disable=SC2086 - tar -xf ${RELEASE}.tar.gz + wget -q https://github.com/lllyasviel/Fooocus/archive/refs/tags/"${RELEASE}".tar.gz + tar -xf "${RELEASE}".tar.gz cp -r "${RELEASE}"/* /opt/Fooocus rm -rf "${RELEASE}" "${RELEASE}".tar.gz cd /opt/Fooocus || msg_error "Failed to change directory" diff --git a/install/fooocus-install.sh b/install/fooocus-install.sh index 25f8818e..1e556b50 100644 --- a/install/fooocus-install.sh +++ b/install/fooocus-install.sh @@ -31,10 +31,10 @@ msg_ok "Updated Python3" msg_info "Installing Fooocus" FOOOCUS_VERSION=$(wget -q https://github.com/lllyasviel/Fooocus/releases/latest -O - | grep "title>Release" | cut -d " " -f 4) cd /opt || msg_error "Failed to change directory to /opt" -$STD wget https://github.com/lllyasviel/Fooocus/releases/download/"$FOOOCUS_VERSION"/"$FOOOCUS_VERSION".tar.xz -$STD tar -xf "${FOOOCUS_VERSION}".tar.xz -C /opt/ +$STD wget https://github.com/lllyasviel/Fooocus/archive/refs/tags/"${FOOOCUS_VERSION}".tar.gz +$STD tar -xf "${FOOOCUS_VERSION}".tar.gz -C /opt/ mv "${FOOOCUS_VERSION}" /opt/Fooocus -rm -rf "${FOOOCUS_VERSION}" "${FOOOCUS_VERSION}".tar.xz +rm -rf "${FOOOCUS_VERSION}" "${FOOOCUS_VERSION}".tar.gz cd /opt/Fooocus || msg_error "Failed to change directory to /opt/Fooocus" $STD pip3 install --upgrade pip $STD pip3 install -r requirements.txt