#!/bin/sh mkdir -p /srv/data/etc for file_path in /srv/atheme/etc/*.example; do file_name="$(basename "$file_path")" cp -n -p "$file_path" "/srv/data/etc/${file_name%%.example}" done cp -n -p -r /srv/atheme/var /srv/data/ rm -f /srv/data/var/run/atheme/atheme.pid su atheme \ -c "/srv/atheme/bin/atheme-services \ -n \ $*"