Add user to pulse group in setup_user.sh script

This commit is contained in:
Josh.5
2022-09-17 19:32:25 +12:00
committed by Josh Sunnex
parent 8b1de46a6d
commit adac278106
4 changed files with 45 additions and 41 deletions

View File

@@ -426,9 +426,6 @@ RUN \
&& chown -R ${USER} \ && chown -R ${USER} \
${USER_HOME} \ ${USER_HOME} \
&& echo "${USER} ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers \ && echo "${USER} ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers \
&& adduser ${USER} audio \
&& adduser ${USER} video \
&& adduser ${USER} pulse \
&& \ && \
echo echo

View File

@@ -11,8 +11,8 @@ usermod -o -u "${PUID}" ${USER}
groupmod -o -g "${PGID}" ${USER} groupmod -o -g "${PGID}" ${USER}
echo "Adding run user to video, input and audio groups" echo "Adding run user to video, audio, input and pulse groups"
usermod -a -G video,input,audio ${USER} usermod -a -G video,audio,input,pulse ${USER}
echo "Setting umask to ${UMASK}"; echo "Setting umask to ${UMASK}";

View File

@@ -1,8 +1,8 @@
echo "**** Configure Neko ****" echo "**** Configure Neko ****"
if ([ "${MODE}" != "s" ] && [ "${MODE}" != "secondary" ]); then
if ([ ${WEB_UI_MODE} = "neko" ] && [ "${MODE}" != "s" ] && [ "${MODE}" != "secondary" ]); then if [ ${WEB_UI_MODE} = "neko" ]; then
echo "Enable Neko server" echo "Enable Neko server"
sed -i 's|^autostart.*=.*$|autostart=true|' /etc/supervisor.d/neko.ini sed -i 's|^autostart.*=.*$|autostart=true|' /etc/supervisor.d/neko.ini
if [[ -z ${NEKO_NAT1TO1} ]]; then if [[ -z ${NEKO_NAT1TO1} ]]; then
@@ -11,8 +11,11 @@ if ([ ${WEB_UI_MODE} = "neko" ] && [ "${MODE}" != "s" ] && [ "${MODE}" != "secon
else else
echo "User provided setting NEKO_NAT1TO1=${NEKO_NAT1TO1}" echo "User provided setting NEKO_NAT1TO1=${NEKO_NAT1TO1}"
fi fi
else else
echo "Disable Neko server" echo "Disable Neko server"
fi
else
echo "Neko server not available when container is run in 'secondary' mode"
fi fi
echo "DONE" echo "DONE"

View File

@@ -1,7 +1,8 @@
echo "**** Configure VNC ****" echo "**** Configure VNC ****"
if ([ ${WEB_UI_MODE} = "vnc" ] && [ "${MODE}" != "s" ] && [ "${MODE}" != "secondary" ]); then if ([ "${MODE}" != "s" ] && [ "${MODE}" != "secondary" ]); then
if [ ${WEB_UI_MODE} = "vnc" ]; then
echo "Enable VNC server" echo "Enable VNC server"
sed -i 's|^autostart.*=.*$|autostart=true|' /etc/supervisor.d/vnc.ini sed -i 's|^autostart.*=.*$|autostart=true|' /etc/supervisor.d/vnc.ini
if [[ "${ENABLE_VNC_AUDIO}" == "true" ]]; then if [[ "${ENABLE_VNC_AUDIO}" == "true" ]]; then
@@ -32,8 +33,11 @@ if ([ ${WEB_UI_MODE} = "vnc" ] && [ "${MODE}" != "s" ] && [ "${MODE}" != "second
# Disable supervisord script # Disable supervisord script
sed -i 's|^autostart.*=.*$|autostart=false|' /etc/supervisor.d/vnc-audio.ini sed -i 's|^autostart.*=.*$|autostart=false|' /etc/supervisor.d/vnc-audio.ini
fi fi
else else
echo "Disable VNC server" echo "Disable VNC server"
fi
else
echo "VNC server not available when container is run in 'secondary' mode"
fi fi
echo "DONE" echo "DONE"