Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Huge tidy up/prune/refactor of the code #1141

Merged
merged 10 commits into from
Jul 15, 2022
Merged

Huge tidy up/prune/refactor of the code #1141

merged 10 commits into from
Jul 15, 2022

Conversation

PromoFaux
Copy link
Member

@PromoFaux PromoFaux commented Jul 11, 2022

A lot of changes here - but this has been a long time coming, and is desperately needed. Tested functionality as I went along, everything appears to be in order.

Summary of changes:

  • Moves most code in start.sh into functions in bash_functions.sh
  • Removes code from 20-start.sh and moves it inside start.sh
  • Removes unused variables and code, making it easier to find our way around
  • Removes dependency on webpage.sh, which had to be modified in order to source it properly (thus breaking pihole checkout), use utils.sh instead
  • Replaces all uses of ServerIP/v6 with new FTLCONF_REPLY_ADDR4/6 variables
  • No need to symlink echo to whiptail any more (probably hasn't been needed for a while)
  • removes huge list of exported env vars at the top of start.sh - no longer appear to be needed
  • rename some functions in bash_functions to more logical names, group their usages in start.sh
  • adjust/fix tests to match changes
  • remove some dead tests
  • Upgrade to S6-overlay v3

- Moves most code in start.sh into functions in bash_functions.sh
- Removes code from 20-start.sh and moves it inside start.sh
- Removes unused variables and code, making it easier to find our way around
- Removes dependency on webpage.sh, which had to be modified in order to source it properly (thus breaking pihole checkout), use utils.sh instead
- Replaces all uses of ServerIP/v6 with new FTLCONF_REPLY_ADDR4/6 variables
- No need to symlink echo to whiptail any more (probably hasn't been needed for a while)
- removes huge list of exported env vars at the top of start.sh - no longer appear to be needed
- rename some functions in bash_functions to more logical names, group their usages in start.sh
- adjust/fix tests to match changes
- remove some dead tests

Signed-off-by: Adam Warner <[email protected]>
Signed-off-by: Adam Warner <[email protected]>
@PromoFaux PromoFaux requested a review from a team July 11, 2022 23:04
…o get away from this without a dedicated function in the core repo (or copying the code - but I wont do that)

Signed-off-by: Adam Warner <[email protected]>
…ipt. Prevents issues when checking out a new branch of pihole-FTL inside the container

Signed-off-by: Adam Warner <[email protected]>
Build this branch on push?

Signed-off-by: Adam Warner <[email protected]>
Signed-off-by: Adam Warner <[email protected]>
Co-authored-by: RD WebDesign <[email protected]>

Signed-off-by: Adam Warner <[email protected]>
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants