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

Add script for mass password reset of Plesk entities #48

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aleksxxch
Copy link
Contributor

No description provided.

@sibprogrammer sibprogrammer self-requested a review February 2, 2024 13:16
@@ -0,0 +1,1110 @@
<?php
/*
* Copyright 1999-2023. Plesk International GmbH. All rights reserved.
Copy link
Member

Choose a reason for hiding this comment

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

1999-2024

private readonly string $pleskDir;

public function __construct(
private readonly GetOpt $options,
Copy link
Member

Choose a reason for hiding this comment

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

AFAIK the "readonly" modifier is not a valid syntax for PHP 8.0


public function helpUsage(): never
{
echo PHP_EOL . "Usage: {$this->argv[0]} <plesk_db_admin_password> [new_plesk_db_admin_password] [options]" . PHP_EOL;
Copy link
Member

Choose a reason for hiding this comment

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

heredoc is more convenient, but it's up to you

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