Added lbu include for service file in AddPinger.sh
This commit is contained in:
@@ -38,6 +38,7 @@ read -p "Enter name of pinger to be added: " NewPingerName
|
||||
cp ./templates/"$NewPingerType"Ping.service.template /etc/init.d/$NewPingerType'Ping'$NewPingerName
|
||||
chmod +x /etc/init.d/$NewPingerType'Ping'$NewPingerName
|
||||
sed -i -e "/PingerName=/c\PingerName=$NewPingerName" /etc/init.d/$NewPingerType'Ping'$NewPingerName
|
||||
lbu include /etc/init.d/$NewPingerType'Ping'$NewPingerName
|
||||
|
||||
#Create config file
|
||||
cp ./templates/"$NewPingerType"Ping.cfg.template ./config/$NewPingerType'Ping_'$NewPingerName.cfg
|
||||
|
||||
Reference in New Issue
Block a user