Skip to content

Comments

feat: add common functions library and resend welcome email script#96

Merged
printminion-co merged 1 commit intomainfrom
mk/dev/add_admin_scripts
Jan 13, 2026
Merged

feat: add common functions library and resend welcome email script#96
printminion-co merged 1 commit intomainfrom
mk/dev/add_admin_scripts

Conversation

@printminion-co
Copy link
Contributor

@printminion-co printminion-co commented Jan 7, 2026

This commit introduces a new common.sh library that provides standardized logging, error handling, and OCC command execution functions for IONOS admin tools. Additionally, a new script resend-welcome-mail-user.sh is added to facilitate resending welcome emails to specific Nextcloud users, complete with argument parsing and help documentation.

ubuntu@nc-dev-container:/var/www/html$ ./IONOS/admin-tools/resend-welcome-mail-user.sh g1user1 --quiet
ubuntu@nc-dev-container:/var/www/html$ echo $?
0
ubuntu@nc-dev-container:/var/www/html$ ./IONOS/admin-tools/resend-welcome-mail-user.sh g1user1
[INFO] Starting resend-welcome-mail-user.sh
[INFO] Checking if user 'g1user1' exists...
[INFO] Resending welcome email to user: 'g1user1'
[INFO] Executing: php /var/www/html/occ user:welcome g1user1
[SUCCESS] Welcome email sent to user: 'g1user1'
[SUCCESS] Operation completed successfully
ubuntu@nc-dev-container:/var/www/html$ echo $?
0
ubuntu@nc-dev-container:/var/www/html$ ./IONOS/admin-tools/resend-welcome-mail-user.sh john.doe
[INFO] Starting resend-welcome-mail-user.sh
[INFO] Checking if user 'john.doe' exists...
[FATAL] User 'john.doe' does not exist

@printminion-co printminion-co requested a review from Copilot January 7, 2026 15:07
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR introduces a reusable shell script library and administrative tooling for Nextcloud operations. It establishes standardized patterns for logging, error handling, and OCC command execution across IONOS admin tools.

Key Changes:

  • Created common.sh library with logging functions, OCC command wrappers, and validation utilities
  • Added resend-welcome-mail-user.sh script to resend welcome emails with comprehensive argument parsing
  • Documented the admin tools framework, conventions, and usage patterns in README.md

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
admin-tools/common.sh Provides shared logging, error handling, and OCC command execution functions for admin scripts
admin-tools/resend-welcome-mail-user.sh Implements welcome email resending with standardized CLI options and validation
admin-tools/README.md Documents the admin tools framework, script conventions, and usage examples

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@printminion-co printminion-co force-pushed the mk/dev/add_admin_scripts branch 2 times, most recently from 08a213c to 5c9c896 Compare January 7, 2026 15:16
@printminion-co printminion-co requested a review from Copilot January 7, 2026 15:17
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@printminion-co printminion-co force-pushed the mk/dev/add_admin_scripts branch from 5c9c896 to a609dd2 Compare January 7, 2026 15:22
@printminion-co printminion-co requested a review from Copilot January 7, 2026 15:23
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

This commit introduces a new `common.sh` library that provides standardized logging, error handling, and OCC command execution functions for IONOS admin tools. Additionally, a new script `resend-welcome-mail-user.sh` is added to facilitate resending welcome emails to specific Nextcloud users, complete with argument parsing and help documentation.

Signed-off-by: Misha M.-Kupriyanov <kupriyanov@strato.de>
@printminion-co printminion-co force-pushed the mk/dev/add_admin_scripts branch from a609dd2 to 083f160 Compare January 7, 2026 15:41
@matsaur matsaur requested a review from dsteininger86 January 13, 2026 08:15
Copy link
Contributor

@dsteininger86 dsteininger86 left a comment

Choose a reason for hiding this comment

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

review OK

@printminion-co printminion-co merged commit 81256d6 into main Jan 13, 2026
12 checks passed
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