Updating paths

This commit is contained in:
ulmentflam 2024-06-15 16:59:12 -04:00
parent eec4793514
commit 19b184a504
No known key found for this signature in database
2 changed files with 5 additions and 6 deletions

View file

@ -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"

View file

@ -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