Skip to content

Commit

Permalink
ubuntu: fix execution of add-apt-repository
Browse files Browse the repository at this point in the history
  • Loading branch information
sylirre committed Jan 9, 2025
1 parent fb1a599 commit 6291a0e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions distro-build/ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,17 @@ write_plugin() {
${TAB}run_proot_cmd DEBIAN_FRONTEND=noninteractive dpkg-reconfigure locales
${TAB}# Configure Firefox PPA.
${TAB}add-apt-repository ppa:mozillateam/firefox-next
${TAB}echo "Configuring PPA repository for Firefox..."
${TAB}run_proot_cmd add-apt-repository --yes ppa:mozillateam/firefox-next || true
${TAB}cat <<- CONFIG_EOF > ./etc/apt/preferences.d/pin-mozilla-ppa
${TAB}Package: *
${TAB}Pin: release o=LP-PPA-mozillateam-firefox-next
${TAB}Pin-Priority: 9999
${TAB}CONFIG_EOF
${TAB}# Configure Thunderbird PPA.
${TAB}add-apt-repository ppa:mozillateam/thunderbird-next
${TAB}echo "Configuring PPA repository for Thunderbird..."
${TAB}run_proot_cmd add-apt-repository --yes ppa:mozillateam/thunderbird-next || true
${TAB}cat <<- CONFIG_EOF > ./etc/apt/preferences.d/pin-thunderbird-ppa
${TAB}Package: *
${TAB}Pin: release o=LP-PPA-mozillateam-thunderbird-next
Expand Down
6 changes: 4 additions & 2 deletions distro-plugins/ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,17 @@ distro_setup() {
run_proot_cmd DEBIAN_FRONTEND=noninteractive dpkg-reconfigure locales

# Configure Firefox PPA.
add-apt-repository ppa:mozillateam/firefox-next
echo "Configuring PPA repository for Firefox..."
run_proot_cmd add-apt-repository --yes ppa:mozillateam/firefox-next || true
cat <<- CONFIG_EOF > ./etc/apt/preferences.d/pin-mozilla-ppa
Package: *
Pin: release o=LP-PPA-mozillateam-firefox-next
Pin-Priority: 9999
CONFIG_EOF

# Configure Thunderbird PPA.
add-apt-repository ppa:mozillateam/thunderbird-next
echo "Configuring PPA repository for Thunderbird..."
run_proot_cmd add-apt-repository --yes ppa:mozillateam/thunderbird-next || true
cat <<- CONFIG_EOF > ./etc/apt/preferences.d/pin-thunderbird-ppa
Package: *
Pin: release o=LP-PPA-mozillateam-thunderbird-next
Expand Down

0 comments on commit 6291a0e

Please sign in to comment.