FIX: fix for writing log file.
This commit is contained in:
parent
bd742d6471
commit
f010dfe94d
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,5 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
sudo mkdir -p /etc/sdt/device-heartbeat
|
||||||
sudo cp device-heartbeat /usr/bin/
|
sudo cp device-heartbeat /usr/bin/
|
||||||
sudo cp device-heartbeat.service /etc/systemd/system/
|
sudo cp device-heartbeat.service /etc/systemd/system/
|
||||||
sudo systemctl start device-heartbeat
|
sudo systemctl start device-heartbeat
|
||||||
|
|
7
init.sh
7
init.sh
|
@ -5,10 +5,11 @@ set -e
|
||||||
if [ $(id -u) -ne 0 ]; then
|
if [ $(id -u) -ne 0 ]; then
|
||||||
echo "Please run as root. - sudo su"
|
echo "Please run as root. - sudo su"
|
||||||
exit
|
exit
|
||||||
elif [ $1 == "help" ]; then
|
else
|
||||||
echo "Please input parameter. follow as:"
|
echo "Please input parameter. follow as:"
|
||||||
echo "Example) Organzation ID=58a311aa-f52a-40e3-af44-cdec82b9d0b7 SerialNumbe=ECN-SJ-TEST-001 Type=ecn"
|
echo "Organzation ID=58a311aa-f52a-40e3-af44-cdec82b9d0b7"
|
||||||
exit
|
echo "SerialNumber=ECN-SJ-TEST-001"
|
||||||
|
echo "Type=ecn"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p /usr/local/bin
|
mkdir -p /usr/local/bin
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
sudo mkdir -p /etc/sdt/process-checker
|
||||||
sudo cp process-checker /usr/bin/
|
sudo cp process-checker /usr/bin/
|
||||||
sudo cp process-checker.service /etc/systemd/system/
|
sudo cp process-checker.service /etc/systemd/system/
|
||||||
sudo systemctl start process-checker
|
sudo systemctl start process-checker
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue