Add the ability to disable install
This commit is contained in:
parent
b78183fa6e
commit
2b93a250c6
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.disabled
|
@ -1,7 +1,14 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
run_directory=$(dirname "$0")
|
||||||
|
|
||||||
|
if [ -f $run_directory/.disabled ]; then
|
||||||
|
echo "Installation is disabled. Exiting..."
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Copying Systemd units to user's directory..."
|
echo "Copying Systemd units to user's directory..."
|
||||||
cp $(dirname "$0")/pulseaudio-dlna.service $HOME/.config/systemd/user/
|
cp $run_directory/pulseaudio-dlna.service $HOME/.config/systemd/user/
|
||||||
|
|
||||||
echo "Reloading Systemd's user runtime..."
|
echo "Reloading Systemd's user runtime..."
|
||||||
systemctl --user daemon-reload
|
systemctl --user daemon-reload
|
||||||
|
Loading…
Reference in New Issue
Block a user