fhl-server-configs/enable-services.sh

9 lines
182 B
Bash
Raw Normal View History

#!/bin/sh
SERVICE_DIR="/etc/systemd/system"
find ./ -type f -name '*.service' -print | while read LINE
do
FILE=$(basename "$LINE" | cut -d '.' -f 1)
systemctl enable "$FILE"
done