docs: added ishell apply license
This commit is contained in:
parent
a62b4e29b0
commit
0a3a084be0
2 changed files with 37 additions and 0 deletions
|
|
@ -30,3 +30,4 @@ The following are the most common system administration tasks.
|
|||
system_admin/enable-debug
|
||||
system_admin/admin-tricks
|
||||
system_admin/cleanup-cmds
|
||||
system_admin/apply-license-ishell
|
||||
|
|
|
|||
36
docs/admin/system_admin/apply-license-ishell.rst
Normal file
36
docs/admin/system_admin/apply-license-ishell.rst
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
.. _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:
|
||||
|
||||
```
|
||||
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
|
||||
|
||||
```
|
||||
In [2]: license = """
|
||||
...: eyJ2YWxpZF90aWxsIjogMTUwNTQ5NTUwMS40MzE4MzMsICJsYXN0X25hbWUiOiAic2QiLCAidmVyIjog
|
||||
...: MiwgInVzZXJzIjogMjUsICJjb21wYW55IjogImQiLCAic2lnbmF0dXJlIjogIkZQYTdhcWlBeUFDejFW
|
||||
...: YkthNlMyVUkzc09zN0k5eFpyb1BTTTRUdVUvZHlQK2lUTUdaeEgybTJvbFJ0MU1CbWVEQlVKR1ZhUUVW
|
||||
...: RHNNR1hvWDR3RExQUGszS0ZDckoxQU1NWWhGa0ZwUEFmTDViUTMrQ2Z2d1VkMzR4ZDM3OERZbzdaRHJs
|
||||
...: """
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue