Move home directory config installation to desktop config init.d script

This commit is contained in:
Josh.5
2023-09-19 15:59:35 +12:00
parent 7552680a01
commit 37f7280dba
2 changed files with 10 additions and 9 deletions

View File

@@ -8,7 +8,15 @@ else
echo "Desktop service not available when container is run in 'secondary' mode."
sed -i 's|^autostart.*=.*$|autostart=false|' /etc/supervisor.d/desktop.ini
fi
echo "Ensure home directory template is owned by the default user."
chown -R ${PUID}:${PGID} /templates/home_directory_template
# Setup home directory
if [[ ! -f /tmp/.home-directory-template-updated ]]; then
echo "Ensure home directory template is owned by the default user."
chown -R ${PUID}:${PGID} /templates/home_directory_template
echo "Installing default home directory template"
mkdir -p "${USER_HOME:?}"
rsync -aq /templates/home_directory_template/ "${USER_HOME:?}"/
touch /tmp/.home-directory-template-updated
fi
echo "DONE"