Skip to content

Commit

Permalink
install complete
Browse files Browse the repository at this point in the history
  • Loading branch information
teevans committed Aug 4, 2022
1 parent fd326ae commit 00ca774
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion scripts/uninstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,27 @@ if [[ $(/usr/bin/id -u) -ne 0 ]]; then
exit
fi

# Enable RW Filesystem
mount -o remount,rw /
mount -o remount,rw /boot

printf -- '======================================\n'
printf -- '== Pi-Spotter ==\n'
printf -- '== Uninstaller ==\n'
printf -- '======================================\n'
printf -- '\n'
printf -- 'Uninstalling...'

rm -rf /tmp/pispotter
rm -rf /var/www/pispotter
rm -f /etc/nginx/default.d/pispotter.conf

# Reload nginx
systemctl reload nginx

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

# Present url for accses
echo "Pi-Spotter has been removed!"
printf -- "Pi-Spotter has been removed!"

0 comments on commit 00ca774

Please sign in to comment.