SKIP_PPA_LAUNCHPAD due to launchpad extended DDOS attack#155
Closed
FrankiePustorino wants to merge 2 commits intoUtappia:developfrom
Closed
SKIP_PPA_LAUNCHPAD due to launchpad extended DDOS attack#155FrankiePustorino wants to merge 2 commits intoUtappia:developfrom
FrankiePustorino wants to merge 2 commits intoUtappia:developfrom
Conversation
Key Changes Made: Added global flag: SKIP_PPA_LAUNCHPAD=0 at the top of the script New function: APT_UPDATE_WITH_SKIP() - Handles apt update with optional skipping of ppa.launchpad.net Creates a temporary apt configuration to skip ppa.launchpad.net Filters out error messages related to the skipped repository Provides clear user feedback about what's happening Updated MAINTENANCE() function: Now calls APT_UPDATE_WITH_SKIP instead of direct apt update New command-line option: --skip-ppa-launchpad Can be combined with other options (or used alone) Added to help text with clear explanation Updated SHOW_HELP(): Includes documentation for the new flag # Normal maintenance (apt update includes all repos) sudo ucaresystem-core # Skip ppa.launchpad.net during apt update sudo ucaresystem-core --skip-ppa-launchpad # Skip ppa.launchpad.net and then reboot sudo ucaresystem-core --skip-ppa-launchpad -r # Skip ppa.launchpad.net with debug sudo ucaresystem-core --skip-ppa-launchpad -x
Key Changes Made: Fixed the incomplete function - All functions are now properly closed with } Improved APT_UPDATE_WITH_SKIP function - Now uses a safer approach: Temporarily moves PPA files containing "launchpad" to a backup directory Runs apt update without those PPAs Restores the PPAs after the update completes This ensures Launchpad PPAs are only skipped temporarily Added proper error handling - The script now properly handles cases where PPA files might not exist # Normal maintenance (includes all PPAs) sudo ucaresystem-core # Skip Launchpad PPAs (useful during attacks/outages) sudo ucaresystem-core --skip-ppa-launchpad # Skip Launchpad PPAs and then reboot sudo ucaresystem-core --skip-ppa-launchpad -r # Combine with debug mode sudo ucaresystem-core --skip-ppa-launchpad -x
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Key Changes Made:
Added global flag: SKIP_PPA_LAUNCHPAD=0 at the top of the script
New function: APT_UPDATE_WITH_SKIP() - Handles apt update with optional skipping of ppa.launchpad.net
Creates a temporary apt configuration to skip ppa.launchpad.net
Filters out error messages related to the skipped repository
Provides clear user feedback about what's happening
Updated MAINTENANCE() function: Now calls APT_UPDATE_WITH_SKIP instead of direct apt update
New command-line option: --skip-ppa-launchpad
Can be combined with other options (or used alone)
Added to help text with clear explanation
Updated SHOW_HELP(): Includes documentation for the new flag
Normal maintenance (apt update includes all repos) sudo ucaresystem-core
Skip ppa.launchpad.net during apt update
sudo ucaresystem-core --skip-ppa-launchpad
Skip ppa.launchpad.net and then reboot
sudo ucaresystem-core --skip-ppa-launchpad -r
Skip ppa.launchpad.net with debug
sudo ucaresystem-core --skip-ppa-launchpad -x