22 lines
750 B
INI
22 lines
750 B
INI
[Unit]
|
|
Description=Ansipa Scan Results SMB Share Setup
|
|
# Run before smb so smb.conf and the Samba user exist when smbd starts.
|
|
Before=smb.service
|
|
After=network.target docker-env.service
|
|
Wants=docker-env.service
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=yes
|
|
# Passwords come from /etc/container.env (written by docker-env.service from Docker -e flags).
|
|
# On subsequent restarts they are read from /data/samba/ansipa-smb.env by the script.
|
|
EnvironmentFile=/etc/container.env
|
|
ExecStart=/usr/local/sbin/ansipa-smb-setup.sh
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
|
|
[Install]
|
|
# multi-user.target ensures this runs on every container start.
|
|
# Before=smb.service guarantees smb.conf and the Samba user exist before smbd starts.
|
|
WantedBy=multi-user.target
|