Skip to content

Commit

Permalink
Pale Moon: switch to add_external_repo and rm_external_repo
Browse files Browse the repository at this point in the history
  • Loading branch information
theofficialgman committed Jan 1, 2024
1 parent e54b288 commit 39b5c7c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
20 changes: 12 additions & 8 deletions apps/Pale Moon/install-64
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
#!/bin/bash
echo 'deb http://download.opensuse.org/repositories/home:/stevenpusser/Debian_10/ /' | sudo tee /etc/apt/sources.list.d/home:stevenpusser.list >/dev/null
curl -fsSL https://download.opensuse.org/repositories/home:stevenpusser/Debian_10/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/home_stevenpusser.gpg >/dev/null

(install_packages palemoon)
if [ $? != 0 ];then
#if package-installation failed, remove repository to avoid breaking apt updates
sudo rm -f /etc/apt/sources.list.d/home:stevenpusser.list /etc/apt/trusted.gpg.d/home_stevenpusser.gpg
exit 1

#remove deprecated files
sudo rm -f /etc/apt/sources.list.d/home:stevenpusser.list /etc/apt/trusted.gpg.d/home_stevenpusser.gpg

add_external_repo "stevenpusser" "http://download.opensuse.org/repositories/home:/stevenpusser/Debian_10/ /" "https://download.opensuse.org/repositories/home:stevenpusser/Debian_10/Release.key" || exit 1

apt_update
if [ $? != 0 ]; then
rm_external_repo "stevenpusser"
error "Failed to perform apt update after adding stevenpusser repository."
fi

install_packages palemoon || exit 1
6 changes: 5 additions & 1 deletion apps/Pale Moon/uninstall
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/bash

purge_packages || exit 1
remove_repofile_if_unused /etc/apt/sources.list.d/home:stevenpusser.list

#remove deprecated files
sudo rm -f /etc/apt/sources.list.d/home:stevenpusser.list /etc/apt/trusted.gpg.d/home_stevenpusser.gpg

rm_external_repo "stevenpusser"

0 comments on commit 39b5c7c

Please sign in to comment.