From c46acd4a39d7f6acc4b3d13e1e3e7c3e69daa87f Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 26 Jul 2024 14:31:43 -0600 Subject: [PATCH] fix --- debian.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/debian.sh b/debian.sh index e80fd62..2efd808 100755 --- a/debian.sh +++ b/debian.sh @@ -181,6 +181,7 @@ live-os-restore() { chroot $TARGET /usr/bin/debian.sh bootloader $1 $5 $2 chroot $TARGET /usr/bin/debian.sh btrfs-tweaks chroot $TARGET /usr/bin/debian.sh accounts + userTweaks chown -R $USER:$USER $TARGET/home/$USER auto_login cd @@ -256,7 +257,7 @@ configure-repository() { chroot $TARGET /usr/bin/bash -c "export DEBIAN_FRONTEND=noninteractive;/usr/bin/apt dist-upgrade -y -t $DEBIAN_RELEASE-backports" chroot $TARGET /usr/bin/bash -c "export DEBIAN_FRONTEND=noninteractive;/usr/bin/apt install -y $TROUBLESOME_PACKAGES" chroot $TARGET /usr/bin/bash -c "export DEBIAN_FRONTEND=noninteractive;/usr/bin/apt auto-remove -y" - #echo 'DPkg::Post-Invoke {"/usr/bin/debian.sh snapshot";};' >$TARGET/etc/apt/apt.conf + echo 'DPkg::Post-Invoke {"/usr/bin/debian.sh snapshot";};' >$TARGET/etc/apt/apt.conf } make-image() { @@ -304,21 +305,21 @@ install() { custom_service_files setup_script "$1" echo -e "ALGO=zstd\nPERCENT=60" | tee -a $TARGET/etc/default/zramswap + echo 'DPkg::Post-Invoke {"/usr/bin/debian.sh snapshot";};' >$TARGET/etc/apt/apt.conf #unmount } stableDiffusion() { clear - VERSION="3.11" + VERSION="3.10.6" STABLE_VERSION="1.10.0-RC" - sudo apt update - sudo apt install -y python$VERSION python$VERSION-venv python3-pip - sudo apt install -y $STABLE_DIFFUSION + #installPython cd /home/$USER - rm -rf stable-diffusion-webui-* wget https://github.com/AUTOMATIC1111/stable-diffusion-webui/archive/refs/tags/v$STABLE_VERSION.zip unzip "v$STABLE_VERSION.zip" cd /home/$USER/stable-diffusion-webui-$STABLE_VERSION + /usr/local/bin/python3.10 -m venv venv + source venv/bin/activate bash webui.sh }