Skip to content

Commit

Permalink
echo user and homedir
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvinSchiller authored Oct 8, 2023
1 parent 14ce195 commit 375d943
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ JOB="${SCRIPTNAME}"

CURRENT_USER="${SUDO_USER:-$USER}"
HOME_DIR=$(getent passwd "$CURRENT_USER" | cut -d: -f6)
echo "Current User: $CURRENT_USER"
echo "User home dir: $HOME_DIR"

JUKEBOX_HOME_DIR="${HOME_DIR}/RPi-Jukebox-RFID"
LOGDIR="${HOME_DIR}"/phoniebox_logs
Expand Down
2 changes: 2 additions & 0 deletions scripts/installscripts/buster-install-default.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ JOB="${SCRIPTNAME}"

CURRENT_USER="${SUDO_USER:-$USER}"
HOME_DIR=$(getent passwd "$CURRENT_USER" | cut -d: -f6)
echo "Current User: $CURRENT_USER"
echo "User home dir: $HOME_DIR"

JUKEBOX_HOME_DIR="${HOME_DIR}/RPi-Jukebox-RFID"
LOGDIR="${HOME_DIR}"/phoniebox_logs
Expand Down

0 comments on commit 375d943

Please sign in to comment.