#!/usr/bin/env bash

# Copyright (C) 2014-2019 Maciej Delmanowski <drybjed@gmail.com>
# Copyright (C) 2015-2019 DebOps <https://debops.org/>
# SPDX-License-Identifier: GPL-3.0-only

# {{ ansible_managed }}

# Automatically create Samba user's home directory
# shellcheck disable=SC2174
mkdir -m 700 -p "{{ samba__homes_path }}/${1}"
chown "${1}":"${1}" "{{ samba__homes_path }}/${1}"

exit 0
