#!/bin/bash # Template script not meant to be run set -euo pipefail; source "$HL_LIB"; _ch_001-install_deps() { sudo apt-get install -y samba avahi-daemon; } _ch_002-create_user() { sudo useradd --system --shell /usr/sbin/nologin abmas; } _ch_003-create_and_chmod_root() { mkdir -p /data/smbshare; sudo chown -R abmas /data/smbshare; } _ch_004-configure_smbd() { cat smb.conf | sudo tee /etc/samba/smb.conf sudo systemctl reload smbd.service } _run_checkpoints;