Installationsscript praxistauglicher gemacht
This commit is contained in:
parent
62c320252c
commit
e0eb5a6cd5
|
@ -1,8 +1,14 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
sudo cp /home/livecam/LiveCam/systemd/livecam-chch.service /etc/systemd/system/livecam-chch.service
|
if [ "$(id -u)" -ne 0 ]; then
|
||||||
sudo chmod 664 /etc/systemd/system/livecam-chch.service
|
exec sudo /bin/bash "$0" "$@"
|
||||||
# service enablen - startet so automatisch
|
fi
|
||||||
sudo systemctl enable livecam-chch
|
|
||||||
|
|
||||||
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
cp $SCRIPT_DIR/livecam-chch.service /etc/systemd/system/livecam-chch.service
|
||||||
|
chmod 664 /etc/systemd/system/livecam-chch.service
|
||||||
|
systemctl daemon-reload
|
||||||
|
|
||||||
|
# enable and start service
|
||||||
|
systemctl enable livecam-chch
|
||||||
|
systemctl start livecam-chch
|
||||||
|
|
Loading…
Reference in New Issue