Update pacsatsim.sh sed instead of echo

pull/444/head
Alan Johnston 3 months ago committed by GitHub
parent c3fce86182
commit 9b6db7346b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -109,12 +109,12 @@ if [ "$reset" = "0" ] ; then
unzip pi_pacsat.zip
sudo rm pi_pacsat.zip
echo "dir_max_file_age_in_seconds = 6048000" >> /home/pi/pi_pacsat/Debug/pacsat.state
echo
echo "pacsat.state:"
cat /home/pi/pi_pacsat/Debug/pacsat.state
echo
sudo sed -i 's/dir_max_file_age_in_seconds=4320000/dir_max_file_age_in_seconds=6048000/g' /home/pi/pi_pacsat/Debug/pacsat.state
echo
echo "pacsat.state:"
cat /home/pi/pi_pacsat/Debug/pacsat.state
echo
fi

Loading…
Cancel
Save

Powered by TurnKey Linux.