fix: USER does not work #176
This commit is contained in:
parent
5ab34a8aef
commit
2bd60c0f88
1 changed files with 2 additions and 1 deletions
|
|
@ -31,7 +31,8 @@ if [ "$USER" != "root" ]; then
|
|||
fi
|
||||
HOME=/home/$USER
|
||||
echo "$USER:$PASSWORD" | chpasswd
|
||||
cp -r /root/{.gtkrc-2.0,.asoundrc} ${HOME}
|
||||
cp -r /root/{.config,.gtkrc-2.0,.asoundrc} ${HOME}
|
||||
chown -R $USER:$USER ${HOME}
|
||||
[ -d "/dev/snd" ] && chgrp -R adm /dev/snd
|
||||
fi
|
||||
sed -i -e "s|%USER%|$USER|" -e "s|%HOME%|$HOME|" /etc/supervisor/conf.d/supervisord.conf
|
||||
|
|
|
|||
Loading…
Reference in a new issue