feat(systemd): Inform user when systemd units are copied in build logs (#151)
This commit is contained in:
parent
28ed8ed259
commit
dda6d482cd
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue