Skip to content

Instantly share code, notes, and snippets.

@maitret
Last active January 9, 2024 04:16
Show Gist options
  • Save maitret/f359d8076314b5bf8189a3a9148466fb to your computer and use it in GitHub Desktop.
Save maitret/f359d8076314b5bf8189a3a9148466fb to your computer and use it in GitHub Desktop.
Poste.io Fixes
#!/usr/bin/env bash
# /etc/cont-init.d/05-domains.sh
if [ ! -d /data/domains ]; then
echo -e "\t\t\033[1;33m* creating /data/domains directory\033[0m"
mkdir -p /data/domains
fi
# removed stat --format '%U' ... and stat --format '%G' ... to get rid of statx bug
user="$(/bin/core-username "/data/domains")"
group="$(/bin/core-groupname "/data/domains")"
# if [ "mail" != "${user}" ] || [ "mail" != "${group}" ] ; then
# chown mail:mail -R /data/domains
# fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment