feat(systemd): Inform user when systemd units are copied in build logs (#151)

This commit is contained in:
fiftydinar 2024-02-26 18:34:33 +01:00 committed by GitHub
parent 28ed8ed259
commit dda6d482cd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,11 +11,13 @@ USER_UNIT_DIR="/usr/lib/systemd/user"
if [[ -d "$SYSTEM_UNIT_INCLUDE" ]]; then
if [[ -n $(find "$SYSTEM_UNIT_INCLUDE" -type f) ]]; then
echo "Copying 'system' systemd units to system directory"
cp -r "$SYSTEM_UNIT_INCLUDE"/* "$SYSTEM_UNIT_DIR"
fi
fi
if [[ -d "$USER_UNIT_INCLUDE" ]]; then
if [[ -n $(find "$USER_UNIT_INCLUDE" -type f) ]]; then
echo "Copying 'user' systemd units to system directory"
cp -r "$USER_UNIT_INCLUDE"/* "$USER_UNIT_DIR"
fi
fi