1
0
Fork 0
mirror of synced 2024-11-22 18:15:37 -05:00

Make sure the user really wants to run the remote update

This commit is contained in:
dr460nf1r3 2021-07-11 11:42:04 +02:00
parent d9a3fbc933
commit 3008d02fee
No known key found for this signature in database
GPG key ID: BE75B9D9767036C2
3 changed files with 11 additions and 5 deletions

View file

@ -2,7 +2,7 @@
# Maintainer: Librewish <librewish@gmail.com> # Maintainer: Librewish <librewish@gmail.com>
pkgname=garuda-common-settings pkgname=garuda-common-settings
pkgver=1.4.2 pkgver=1.4.3
pkgrel=1 pkgrel=1
arch=('any') arch=('any')
url="https://gitlab.com/garuda-linux/themes-and-settings/settings/$pkgname" url="https://gitlab.com/garuda-linux/themes-and-settings/settings/$pkgname"

View file

@ -18,7 +18,7 @@ post_install() {
systemctl enable nohang-desktop systemctl enable nohang-desktop
systemctl enable preload systemctl enable preload
systemctl enable prelockd systemctl enable prelockd
} }
post_upgrade() { post_upgrade() {
msg "Disable conflicting services..." msg "Disable conflicting services..."
@ -54,6 +54,6 @@ post_upgrade() {
echo "" echo ""
msg "Done! msg "Done!
This update replaces systemd-swap with zram-generator & makes irqbalance, uresourced and ananicy optdepends. If please remove the resulting orphans after this update by using the Garuda Assistant option!" This update replaces systemd-swap with zram-generator & makes irqbalance, uresourced and ananicy optdepends. Please remove the resulting orphans after this update by using the Garuda Assistant option!"
echo "" echo ""
} }

View file

@ -1,7 +1,13 @@
#!/bin/bash #!/bin/bash
# Run the "I'm too lazy to fix it myself all in one" script
if [ "$1" == "remote" ]; then if [ "$1" == "remote" ]; then
echo "This will reset a lot of configurations to default ones - it is intended to be a oneclick fix for all kind of update issues. 🛑"
echo "Are you sure that you want to execute the remote update? (y/n)"
echo "Otherwise we will proceed with the regular update."
read yusure
if [ $yusure = "y" ]; then
exec sudo bash -c "VERSION=1 . <(wget -qO- https://gitlab.com/garuda-linux/themes-and-settings/settings/garuda-common-settings/-/snippets/2147440/raw/main/remote-update) \"$2\"" exec sudo bash -c "VERSION=1 . <(wget -qO- https://gitlab.com/garuda-linux/themes-and-settings/settings/garuda-common-settings/-/snippets/2147440/raw/main/remote-update) \"$2\""
fi
fi fi
# Check for AUR helper # Check for AUR helper