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

Software tittle: Postgres database server #420

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

igorpecovnik
Copy link
Member

Description

Please include a summary of the change and which issue is fixed. Provide relevant motivation and context. Ensure that no new external dependencies are introduced in this change.

Issue reference:
Related documentation:

Implementation Details

Provide a detailed description of the implementation. Include the following:

  • Key changes introduced by this PR
  • Justification for the changes
  • Confirmation that no new external dependencies or modules have been introduced

Documentation Summary

  • Metadata Included:
    Did you include the metadata (associative arrays) in the code? Ensure that metadata for modules, jobs, and runtime has been updated appropriately.

  • Document Generated:
    Did you generate the updated documentation using armbian-configng --doc? Confirm if the command was run to update README.md and provide any relevant details.

Testing Procedure

Describe the tests you ran to verify your changes. Provide relevant details about your test configuration.

  • Test 1: Description and results
  • Test 2: Description and results

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have ensured that my changes do not introduce new warnings or errors
  • No new external dependencies are included
  • Changes have been tested and verified
  • I have included necessary metadata in the code, including associative arrays

@github-actions github-actions bot added the size/medium PR with more then 50 and less then 250 lines label Feb 6, 2025
"${commands[4]}")
echo -e "\nUsage: ${module_options["module_postgres,feature"]} <command>"
echo -e "Commands: ${module_options["module_postgres,example"]}"
echo "Available commands:"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: This section was originally scaffolded for Dialog Box use. Later, it was leveraged to provide a basic help message. To avoid breaking functionality,
see module_cockpit or module_webmin

Propose: something for option "help" to always displays all while option "menu" conditionally filters based on $condition for use with the UX

help_message="Available commands:"

if [[ ($1 == "menu" && -z "$condition") || $1 == "help" ]]; then
    help_message+="\n\tinstall\t- Install $title."
fi
if [[ ($1 == "menu" && -n "$condition") || $1 == "help" ]]; then
    help_message+="\n\tremove\t- Remove $title."
    help_message+="\n\tpurge\t- Purge $title data folder."
    help_message+="\n\tstatus\t- Installation status $title."
fi

echo -e "$help_message"

if [[ $1 == "help" ]]; then
    echo -e "\nAvailable switches:\n"
    echo -e "\tpostgres_user\t\t- username."
    echo -e "\tpostgres_password\t- password."
    echo -e "\tpostgres_db\t\t- database name."
fi

using this for we can simplify json editing and interaction, continuing on json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/medium PR with more then 50 and less then 250 lines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants