ChrisTitusTech / Debian-titus

Debian customizations from Chris Titus Tech
GNU General Public License v3.0
430 stars 158 forks source link

user might differ from user_id '1000' #73

Open IgorKerstges opened 1 year ago

IgorKerstges commented 1 year ago

I was playing with the options of this script in dietpi.. The portion:

username=$(id -u -n 1000)
builddir=$(pwd)

grabs the first created user on the system which -in case of dietpi- might be a different user than the one which is used regularly. I created regular user 'igor' for which I had to change 1000 into 1001..

crazycheetah42 commented 2 months ago

Maybe do a pull request with the whoami command.

crazycheetah42 commented 2 months ago

I did a pull request already. If it gets approved it will be fixed with the whoami command.