1
0
mirror of https://github.com/fcwu/docker-ubuntu-vnc-desktop synced 2026-08-05 16:12:41 +02:00

allow to run as another user as root

This commit is contained in:
Valentin Vieriu
2018-12-04 16:59:05 +01:00
parent 13c0ac0ea3
commit f7c196f58b
3 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ 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}
[ -d "/dev/snd" ] && chgrp -R adm /dev/snd
fi
sed -i "s|%USER%|$USER|" /etc/supervisor/conf.d/supervisord.conf