From 1c48f9e61ba49ce82dd1d12fb3396611e5cfcaa6 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Fri, 7 Feb 2025 14:37:33 -0500 Subject: [PATCH] Update fctelem.sh make dir if not present --- groundstation/fctelem.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/groundstation/fctelem.sh b/groundstation/fctelem.sh index 15744402..2e654cda 100755 --- a/groundstation/fctelem.sh +++ b/groundstation/fctelem.sh @@ -46,6 +46,11 @@ sudo systemctl stop rtl_tcp sudo systemctl stop openwebrx +FILE=/home/pi/CubeSatSim/groundstation/public_html +if [ ! -f "$FILE" ]; then + echo "Making public_html directory" + mkdir /home/pi/CubeSatSim/groundstation/public_html +fi cd /home/pi/CubeSatSim/groundstation/public_html