forked from sujune/bwc-installer
FIX: fix for writing log file.
This commit is contained in:
parent
e1fef8878c
commit
ce3511c89e
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/local/bin/
|
sudo cp device-heartbeat /usr/local/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
|
||||||
|
|
||||||
echo "If you need help, please enter follow as:"
|
echo "If you need help, please enter follow as:"
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
sudo mkdir -p /etc/sdt/process-checker
|
||||||
sudo cp process-checker /usr/local/bin/
|
sudo cp process-checker /usr/local/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