39 lines
1.1 KiB
ReStructuredText
39 lines
1.1 KiB
ReStructuredText
.. _apply-license-ishell:
|
|
|
|
Apply license from ishell
|
|
=========================
|
|
|
|
From the server RhodeCode Enterprise is running run ishell on the instance which we want to apply the license to:
|
|
|
|
.. code-block:: bash
|
|
:dedent: 1
|
|
|
|
# starts the ishell interactive prompt
|
|
$ ./rcstack cli ishell
|
|
|
|
|
|
This will open an ishell interactive console. Inside the console execute the following:
|
|
|
|
.. code-block:: python
|
|
:dedent: 1
|
|
|
|
In [1]: from rc_license.models import apply_license
|
|
In [2]: license = """
|
|
...: PASTE LICENSE HERE
|
|
...: """
|
|
In [3]: apply_license(license)
|
|
Out[3]: True
|
|
In [4]: Session().commit()
|
|
exit
|
|
|
|
The paste license should look similar to the below
|
|
|
|
.. code-block:: python
|
|
:dedent: 1
|
|
|
|
In [2]: license = """
|
|
...: eyJ2YWxpZF90aWxsIjogMTUwNTQ5NTUwMS40MzE4MzMsICJsYXN0X25hbWUiOiAic2QiLCAidmVyIjog
|
|
...: MiwgInVzZXJzIjogMjUsICJjb21wYW55IjogImQiLCAic2lnbmF0dXJlIjogIkZQYTdhcWlBeUFDejFW
|
|
...: YkthNlMyVUkzc09zN0k5eFpyb1BTTTRUdVUvZHlQK2lUTUdaeEgybTJvbFJ0MU1CbWVEQlVKR1ZhUUVW
|
|
...: RHNNR1hvWDR3RExQUGszS0ZDckoxQU1NWWhGa0ZwUEFmTDViUTMrQ2Z2d1VkMzR4ZDM3OERZbzdaRHJs
|
|
...: """
|