echo "--- Cleanup"

cd /usr/share/nginx/html/
rm -f install.php
rm -f data.bin
rm -f fluxdb.ini
rm -f fluxlic.ini

cd ~
rm -rf autoinstall
rm -f ff1.sh
rm -f ff2.sh
rm -f ff3.sh
rm -f ff4.sh

################################
###### UPDATE TO FF 2.079
################################

mkdir /usr/share/nginx/html/admin/templates/code-snippets/js
cd /usr/share/nginx/html
wget https://funnelflux.com/cm/uploads/2.079.zip
unzip -o 2.079.zip
php admin/tools/backgroundJobs/setupDBTables.php
chown -R nginx:nginx *

################################
###### DONE!
################################

echo "---"
echo "--- General cleanup + install.php and data.bin have been deleted for added security"
echo "---"
echo "--- Note: All your FunnelFlux files are located at the following location on your server:"
echo "--- /usr/share/nginx/html/"
echo "--- "

