Updating paths

pull/3212/head
ulmentflam 1 year ago
parent eec4793514
commit 19b184a504
No known key found for this signature in database
  1. 5
      ct/fooocus.sh
  2. 6
      install/fooocus-install.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"

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

Loading…
Cancel
Save