Need to be able to init on any distro.

The current supervisor.d configs are configured specifically for a particular supervisor version / installation.
This decouples the configuration so we can use it on any distro.
This commit is contained in:
Josh.5
2022-01-26 15:41:31 +13:00
parent 641a7ae7a7
commit 217d0eb26e
18 changed files with 233 additions and 33 deletions

View File

@@ -15,11 +15,19 @@ echo "Setting umask to ${UMASK}";
umask ${UMASK}
echo "Create the user XDG_RUNTIME_DIR"
XDG_RUNTIME_DIR=/run/user/${PUID}
mkdir -p ${XDG_RUNTIME_DIR}
chown -R ${PUID}:${PGID} ${XDG_RUNTIME_DIR}
export XDG_DATA_DIRS="${XDG_DATA_DIRS}:/var/lib/flatpak/exports/share:/home/${USER}/.local/share/flatpak/exports/share"
# Setup home directory and permissions
echo "Adding default home directory template"
mkdir -p ${USER_HOME}
chown -R ${PUID}:${PGID} /etc/home_directory_template
rsync -aq /etc/home_directory_template/ ${USER_HOME}/
chmod +x /usr/bin/start-desktop.sh
# Set the root and user password