Skip to content

Commit

Permalink
root .bash_aliases
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Storm <markus.storm@gmx.net>
  • Loading branch information
mstormi committed Aug 26, 2023
1 parent b8cf524 commit 542574e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions functions/system.bash
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ bashrc_copy() {
if ! cp "${BASEDIR:-/opt/openhabian}"/includes/generic/bash_profile /home/"${username:-openhabian}"/.bash_profile; then echo "FAILED (user bash_profile)"; return 1; fi
if ! cp "${BASEDIR:-/opt/openhabian}"/includes/generic/bash_aliases /home/"${username:-openhabian}"/.bash_aliases; then echo "FAILED (user bash_aliases)"; return 1; fi
if chown "${username:-openhabian}:${username:-openhabian}" /home/"${username:-openhabian}"/.bash_*; then echo "OK"; else echo "FAILED (permissions)"; return 1; fi
if ! cp "${BASEDIR:-/opt/openhabian}"/includes/generic/bash_aliases /root/.bash_aliases; then echo "FAILED (root bash_aliases)"; return 1; fi
}

## Function for adding a tuned vim configuration file to the current system.
Expand Down

0 comments on commit 542574e

Please sign in to comment.