Scripts/custom_pst.sh aktualisiert
This commit is contained in:
parent
f476531a7f
commit
5aacf37d8a
1 changed files with 43 additions and 0 deletions
|
@ -26,6 +26,47 @@ install_theme(){
|
||||||
rm -rf catppuccin
|
rm -rf catppuccin
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
install_snap(){
|
||||||
|
echo "Installing dependencies..."
|
||||||
|
|
||||||
|
echo "Cloning Snapd AUR package..."
|
||||||
|
git clone https://aur.archlinux.org/snapd.git
|
||||||
|
cd snapd
|
||||||
|
echo "Building and installing Snapd..."
|
||||||
|
makepkg -si --noconfirm
|
||||||
|
echo "Enabling snapd.socket service..."
|
||||||
|
sudo systemctl enable --now snapd.socket
|
||||||
|
echo "Enabling AppArmor for Snap confinement..."
|
||||||
|
sudo systemctl enable --now snapd.apparmor.service
|
||||||
|
echo "Creating symbolic link for classic Snap support..."
|
||||||
|
sudo ln -s /var/lib/snapd/snap /snap
|
||||||
|
|
||||||
|
|
||||||
|
echo "Waiting for Snapd to complete device seeding..."
|
||||||
|
max_retries=10
|
||||||
|
retry_count=0
|
||||||
|
while ! sudo snap wait system seed.loaded && [ $retry_count -lt $max_retries ]; do
|
||||||
|
echo "Snapd is not seeded yet, retrying... ($retry_count/$max_retries)"
|
||||||
|
sleep 2
|
||||||
|
((retry_count++))
|
||||||
|
done
|
||||||
|
|
||||||
|
# Check if seeding failed after max retries
|
||||||
|
if [ $retry_count -ge $max_retries ]; then
|
||||||
|
echo "Snapd seeding failed after $max_retries retries. Exiting."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Now you can install your Snap package
|
||||||
|
echo "Snapd is seeded and ready, installing the Snap package..."
|
||||||
|
sudo snap install hello-world
|
||||||
|
|
||||||
|
echo "Snap installation complete!"
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
# Check with sudo
|
# Check with sudo
|
||||||
if sudo [ -f "$REFINDCONF" ]; then
|
if sudo [ -f "$REFINDCONF" ]; then
|
||||||
echo "The file '$REFINDCONF' exists, skipping refind installation"
|
echo "The file '$REFINDCONF' exists, skipping refind installation"
|
||||||
|
@ -35,5 +76,7 @@ else
|
||||||
install_theme
|
install_theme
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
install_snap
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue