use a login shell

This commit is contained in:
Jack L. Frost 2016-01-12 16:16:35 +03:00
parent 010e9dc998
commit 0b7d6ac0c8
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ usage() {
}
rc_run_wait() {
su "$username" -s "$SHELL" -c "$homedir/.config/rc.local" &>"$logdir/${username}.log" &
su - "$username" -s "$SHELL" -c "$homedir/.config/rc.local" &>"$logdir/${username}.log" &
wait "$!"
if (( $? )); then