]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
doc/rgw/lua: add info uploading a script in cephadm deployment
authorYuval Lifshitz <yuvalif@yahoo.com>
Wed, 10 May 2023 09:43:45 +0000 (12:43 +0300)
committerZac Dover <zac.dover@proton.me>
Tue, 4 Jul 2023 21:44:44 +0000 (07:44 +1000)
Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
(cherry picked from commit 5cec4f719581e93760c22419e701c563a8688de9)

doc/radosgw/lua-scripting.rst

index 9f42f20c18fcac905047aa46d0083e6033a9534d..c85f72a6ed9d4aadf0cda436c3aba319e4c7ee40 100644 (file)
@@ -40,10 +40,15 @@ To upload a script:
 
 ::
    
-   # radosgw-admin script put --infile={lua-file} --context={prerequest|postrequest|background|getdata|putdata} [--tenant={tenant-name}]
+   # radosgw-admin script put --infile={lua-file-path} --context={prerequest|postrequest|background|getdata|putdata} [--tenant={tenant-name}]
 
 
-* When uploading a script with the ``background`` context, a tenant name may not be specified.
+* When uploading a script with the ``background`` context, a tenant name should not be specified.
+* When uploading a script into a cluster deployed with cephadm, use the following command:
+
+::
+
+  # cephadm shell radosgw-admin script put --infile=/rootfs/{lua-file-path} --context={prerequest|postrequest|background|getdata|putdata} [--tenant={tenant-name}]
 
 
 To print the content of the script to standard output: