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

SOGo: Template Layers for Custom Configuration #7109

Closed
stephdl opened this issue Nov 12, 2024 · 3 comments
Closed

SOGo: Template Layers for Custom Configuration #7109

stephdl opened this issue Nov 12, 2024 · 3 comments
Assignees
Labels
forge The package belongs to NethForge verified All test cases were verified successfully

Comments

@stephdl
Copy link

stephdl commented Nov 12, 2024

Description
Introduce template layers to make custom configuration of the web app easier.

Purpose

Simplify the process of customizing web app settings.

Proposed Solution

Implement pre-defined template layers that users can apply for customization.

Alternative Solutions

Provide detailed documentation for manual configuration.

Additional Context
These template layers should integrate smoothly with the current configuration process.

See Also

Related discussions on community.nethserver.org.

stephdl added a commit to NethServer/ns8-sogo that referenced this issue Nov 12, 2024
@stephdl stephdl self-assigned this Nov 12, 2024
@stephdl stephdl added the forge The package belongs to NethForge label Nov 12, 2024
@stephdl stephdl moved this from New to Ready in NethServer Nov 12, 2024
@stephdl stephdl moved this from Ready to In progress in NethServer Nov 12, 2024
@stephdl
Copy link
Author

stephdl commented Nov 12, 2024

Test Case: Installation, Configuration, and Validation of SOGo Version 2.0.3.dev-1

  1. Install the SOGo Image

    • Install the ghcr.io/nethserver/sogo:2.0.3.dev-1 image.
      add-module ghcr.io/nethserver/sogo:2.0.3.dev-1
  2. Install Required Components

    • Install an account provider.
    • Install the mail server.
  3. Configure SOGo

    • Complete the configuration steps for SOGo.
  4. Access and Use Verification

    • Verify that SOGo is accessible and functional by logging in and using the application.
  5. Switch to sogo1 User

    • Run the command to become the sogo1 user:
      runagent -m sogo1
  6. Copy and Edit Configuration Templates

    • Copy the necessary configuration template files:
      cp ../templates/sogo.conf templates/sogo.conf.local
      cp ../templates/SOGo.conf templates/SOGo.conf.local
      cp ../templates/cron.conf templates/cron.conf.local
    • Edit the copied files to add the comment # NethServer8_is_beautiful:
      vim templates/sogo.conf.local
      vim templates/SOGo.conf.local
      vim templates/cron.conf.local
  7. Restart SOGo Service

    • Restart the SOGo service:
      systemctl restart --user sogo
  8. Access and Use Verification (Post-Edit)

    • Verify again that SOGo is accessible and functional after the configuration changes.
  9. Validate Configuration Edits

    • Search for the comment string in the configuration files to confirm that the edits were applied:
      grep -srni 'NethServer8_is_beautiful' .
    • Ensure that the configuration files in the config folder contain the added comment string.
[sogo10@R1 state]$ grep -srni 'NethServer8_is_beautiful' .
./config/sogo.conf:3:  /* # NethServer8_is_beautiful 10 Database configuration (mysql) */
./config/SOGo.conf:1:# NethServer8_is_beautiful
./config/cron-sogo:2:# NethServer8_is_beautiful
./templates/sogo.conf.local:3:  /* # NethServer8_is_beautiful 10 Database configuration (mysql) */
./templates/SOGo.conf.local:1:# NethServer8_is_beautiful
./templates/cron.conf.local:2:# NethServer8_is_beautiful

@stephdl stephdl moved this from In progress to Testing in NethServer Nov 12, 2024
@stephdl stephdl added the testing Packages are available from testing repositories label Nov 12, 2024
@stephdl
Copy link
Author

stephdl commented Nov 12, 2024

@stephdl
Copy link
Author

stephdl commented Nov 14, 2024

@stephdl stephdl closed this as completed Nov 14, 2024
@github-project-automation github-project-automation bot moved this from Testing to Done in NethServer Nov 14, 2024
@stephdl stephdl added verified All test cases were verified successfully and removed testing Packages are available from testing repositories labels Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
forge The package belongs to NethForge verified All test cases were verified successfully
Projects
Archived in project
Development

No branches or pull requests

1 participant