diff --git a/plugins/brave.plugin/install.sh b/plugins/brave.plugin/install.sh index d79ddd3..9f8d197 100644 --- a/plugins/brave.plugin/install.sh +++ b/plugins/brave.plugin/install.sh @@ -3,16 +3,14 @@ # Instructions adopted from # https://brave-browser.readthedocs.io/en/latest/installing-brave.html#linux -# old brave version -if [ -f /etc/yum.repos.d/s3-us-west-2.amazonaws.com_brave-rpm-release_x86_64.repo ] ; then - rm -f s3-us-west-2.amazonaws.com_brave-rpm-release_x86_64.repo -fi - -rpm -q --quiet brave && dnf -y remove brave - -# new brave-browser version - -dnf config-manager --add-repo https://brave-browser-rpm-release.s3.brave.com/brave-browser.repo +cat > /etc/yum.repos.d/brave-browser.repo << "EOF" +[brave-browser] +name=Brave Browser +enabled=1 +gpgcheck=1 +gpgkey=https://brave-browser-rpm-release.s3.brave.com/brave-core.asc +baseurl=https://brave-browser-rpm-release.s3.brave.com/$basearch +EOF rpm --import https://brave-browser-rpm-release.s3.brave.com/brave-core.asc diff --git a/plugins/brave.plugin/remove.sh b/plugins/brave.plugin/remove.sh index b4bb167..8e93078 100644 --- a/plugins/brave.plugin/remove.sh +++ b/plugins/brave.plugin/remove.sh @@ -11,4 +11,8 @@ if [ -f /etc/yum.repos.d/brave-browser-rpm-release.s3.brave.com_x86_64_.repo ] ; rm -f /etc/yum.repos.d/brave-browser-rpm-release.s3.brave.com_x86_64_.repo fi +if [ -f /etc/yum.repos.d/brave-browser.repo ] ; then + rm -f /etc/yum.repos.d/brave-browser.repo +fi + dnf -y remove brave brave-browser