Announcement

Collapse
No announcement yet.

Making scripts globally acessible

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Making scripts globally acessible

    Brand new to cloudlinux and I am trying to learn the ropes. I am having trouble grasping the best way to do the following:

    Make a script like WP CLI (http://wp-cli.org/) available to all users. It is in /usr/local/bin/ and I have figured out to make the whole local/bin folder globally accessible with a cfg file, but there is other stuff in there I do not have a reason to make globally acessible.

    What is the best method to do this while still having the script accessible via just "wp" from the terminal?

  • #2
    Sorry for late reply. The /usr/local/bin/directory is not add to cagefs file (not all directory but only some binary files are there). And the best way to add some custom files is to create some /etc/cagefs/conf.d/mycustom.cfg file and add there all what needed, for example:

    Code:
    [mycustom]
    
    comment=mycustom
    
    paths=/usr/local/bin/wp, /any/other/dir/myfile
    Then run cagefsctl --force-update and files should be accessible from cagefs inside after that.

    Comment

    Working...
    X