fix
This commit is contained in:
parent
f49ba0699d
commit
c46acd4a39
13
debian.sh
13
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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user