jailmaker
jailmaker copied to clipboard
Following the documentation for creating an Alias will overwrite the ~/.bashrc file
Currently the documentation is using the following to create an alias to jailmkr.py
echo "alias jlmkr=\"sudo '/mnt/mypool/jailmaker/jlmkr.py'\"" > ~/.bashrc
This will overwrite the contents of the ~/.bashrc file. Instead it should either be:
echo "alias jlmkr=\"sudo '/mnt/mypool/jailmaker/jlmkr.py'\"" >> ~/.bashrc
or
echo "alias jlmkr=\"sudo '/mnt/mypool/jailmaker/jlmkr.py'\"" | tee -a ~/.bashrc
Both of these commands will append, not overwrite.
Fixed. Thanks!