use a login shell
This commit is contained in:
parent
010e9dc998
commit
0b7d6ac0c8
|
@ -8,7 +8,7 @@ usage() {
|
||||||
}
|
}
|
||||||
|
|
||||||
rc_run_wait() {
|
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 "$!"
|
wait "$!"
|
||||||
|
|
||||||
if (( $? )); then
|
if (( $? )); then
|
||||||
|
|
Loading…
Reference in New Issue
Block a user