How to alter root .bashrc
-
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 systemI want to make an alias for the su -... command.
Editing .bashrc says read only filesystem.
-
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.
-
J james has marked this topic as solved