Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Portal control scripts do not work anymore #1393

Open
ro-tex opened this issue Nov 29, 2021 · 0 comments
Open

Portal control scripts do not work anymore #1393

ro-tex opened this issue Nov 29, 2021 · 0 comments

Comments

@ro-tex
Copy link
Contributor

ro-tex commented Nov 29, 2021

Describe the bug

Some time ago we deprecated the cli/disable/cli/enable commands of the health-check container in favour of cli disable <reason>/cli enable. The issue is that this change did not make it to the portal-disable.sh and portal-enable.sh, making those scripts unusable.

Trying to use them today results in this:

user@eu-fin-5:~/skynet-webportal$ ./scripts/portal-down.sh
DEPRECATED: 'cli/disable' command is deprecated, use 'cli disable' instead
cli disable <reason>

Mark portal as disabled (provide meaningful reason)

Options:
  --version  Show version number                                       [boolean]
  --help     Show help                                                 [boolean]

Not enough non-option arguments: got 0, need at least 1

Resolution steps

  1. Switch from cli/disable to cli disable command.
  2. Add a reason parameter to portal-disable.sh and make it required (or with a default value).

To Reproduce

user@eu-fin-5:~/skynet-webportal$ ./scripts/portal-down.sh

Expected behavior

Screenshots

Version Information (please complete the following information):

Additional context

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

No branches or pull requests

1 participant