Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. How to alter root .bashrc

How to alter root .bashrc

Scheduled Pinned Locked Moved Solved Support
4 Posts 2 Posters 97 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    charlesnw
    wrote last edited by
    #1

    I am running about 20 of the Cloudron LAMP app instances.

    I have been updating them via WINSCP/FileZilla. I'm switching to doing a git pull (since all of the content is managed in a git repo).

    Currently I have to:

    su www-data -c "git pull"

    Otherwise I get:

    root@16405153-e269-41e3-ab8d-095606d5b07e:/app/data/public/KNEL/FetchApply# git pull
    fatal: detected dubious ownership in repository at '/app/data/public/KNEL/FetchApply'
    To add an exception for this directory, call:

        git config --global --add safe.directory /app/data/public/KNEL/FetchApply
    

    root@16405153-e269-41e3-ab8d-095606d5b07e:/app/data/public/KNEL/FetchApply# git config --global --add safe.directory /app/data/public/KNEL/FetchApply
    error: could not lock config file /root/.gitconfig: Read-only file system

    I want to make an alias for the su -... command.

    Editing .bashrc says read only filesystem.

    1 Reply Last reply
    0
    • C Offline
      C Offline
      charlesnw
      wrote last edited by
      #2

      In the interim I can utilize autohotkey/espanso to type that out for me. So it's not a big deal. Still, it would be nice to have a way to alter the bash environment (I would love to be able to use zsh on my cloudron server). I realize that interaction via the shell isn't really expected (as the primary UI) (vs the web ui).

      I'll want to roll out CI/CD soon (all my sites are mdbook, so I'll need to pull the compiled assets from the git repo), and will need to be able to git pull as part of that process.

      1 Reply Last reply
      0
      • jamesJ Offline
        jamesJ Offline
        james
        Staff
        wrote last edited by
        #3

        Hello @charlesnw
        Could this be converted to a feature request?

        Example:
        Make all apps include /app/data/.cloudron_bashrc if it exists, by default to make custom changes to the .bashrc.

        One idea how this could be implemented.
        Your thoughts?

        1 Reply Last reply
        0
        • C Offline
          C Offline
          charlesnw
          wrote last edited by
          #4

          I will put in a feature request now and we can discuss further in that thread. 🙂

          1 Reply Last reply
          1
          • jamesJ james has marked this topic as solved
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Bookmarks
          • Search