Skip to content

Commit

Permalink
CI
Browse files Browse the repository at this point in the history
  • Loading branch information
teevans committed Aug 4, 2022
1 parent c0e02c8 commit b4fe868
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ if [[ $(/usr/bin/id -u) -ne 0 ]]; then
exit
fi

# Enable the read-write file system
mount -o remount,rw /
mount -o remount,rw /boot

printf -- '======================================\n'
printf -- '== Pi-Spotter ==\n'
printf -- '== Installer ==\n'
Expand All @@ -13,10 +17,6 @@ printf -- '\n'
printf -- 'Installing...'

{
# Enable the read-write file system
mount -o remount,rw /
mount -o remount,rw /boot


# Create tmp file
rm -rf /tmp/pispotter
Expand Down Expand Up @@ -45,12 +45,13 @@ printf -- 'Installing...'
# Clean Up
rm -rf /tmp/pispotter

# Enable RO Filesystem
mount -o remount,ro /
mount -o remount,ro /boot

} > pispotter-install.log 2>&1

# Enable RO Filesystem
mount -o remount,ro /
mount -o remount,ro /boot

ipaddress=$(ifconfig | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1')
printf -- '\033[32m Done! \033[0m\n'
printf -- 'Access Pi-Spotter from the URL Below!\n'
Expand Down

0 comments on commit b4fe868

Please sign in to comment.