Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions providers/base/units/miscellanea/jobs.pxu
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,27 @@ requires:
bootloader.name == "grub"
command: grub_file_check.sh

plugin: shell
category_id: com.canonical.plainbox::miscellanea
id: miscellanea/screen-private-ppa
user: root
command:
echo "Checking for private PPAs in /etc/apt/sources.list and /etc/apt/sources.list.d/*"
if grep -qrE 'private-ppa.launchpad.net' "/etc/apt/sources.list"* ; then
echo 'The following files have private PPA access'
grep -lrE 'private-ppa.launchpad.net' "/etc/apt/sources.list"*
exit 1
fi
if grep -qrE 'private-ppa.launchpadcontent.net' "/etc/apt/sources.list"* ; then
echo 'The following files have private PPA access'
grep -lrE 'private-ppa.launchpadcontent.net' "/etc/apt/sources.list"*
exit 1
fi
echo "No private PPAs found in sources list files."
_summary: check if any private ppas are added
_description:
This checks if any private ppas are added to the system, fails if any found.

plugin: manual
category_id: com.canonical.plainbox::miscellanea
id: miscellanea/wallpaper
Expand Down
Loading