Skip to content

Commit

Permalink
chore: fix 'satellite-edit-config' looking at wrong path
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian authored Jul 2, 2024
1 parent 341e49f commit d1af252
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions pi-image/satellite-edit-config
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,21 @@ fi
# stop satellite
systemctl stop satellite

# check default path
SATELLITE_CONFIG_PATH=/boot/satellite-config
SATELLITE_CONFIG_PATH=$(realpath $SATELLITE_CONFIG_PATH)

# may not exist, try alternate path
if ! [ -f "$SATELLITE_CONFIG_PATH" ]; then
SATELLITE_CONFIG_PATH=/boot/firmware/satellite-config
fi

# open config editor
nano /boot/satellite-config
if [ -f "$SATELLITE_CONFIG_PATH" ]; then
nano "$SATELLITE_CONFIG_PATH"
else
echo "Failed to find config file to edit. Something looks wrong with your installation"
fi

# restart satellite
# reboot
systemctl start satellite
systemctl start satellite

0 comments on commit d1af252

Please sign in to comment.