mirror of
https://github.com/tteck/Proxmox.git
synced 2025-02-15 06:09:15 +01:00
Updating paths
This commit is contained in:
parent
eec4793514
commit
19b184a504
2 changed files with 5 additions and 6 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue