20 lines
382 B
Bash
Executable File

#!/bin/sh
if [ "`id -u`" -ne 0 ]; then
echo "Switching from `id -un` to root"
exec sudo "$0"
exit 99
fi
cd $(dirname "$BASH_SOURCE")
mv ./favicon.png ../
mv ./InHeat.desktop /usr/share/applications/
cd ..
chmod +x ./InHeat/Binaries/Linux/InHeat-Linux-Shipping
rm -rf ./inheat-scripts/
if [ -d "/usr/share/InHeat" ]
then
rm -rf /usr/share/InHeat
fi
mv "$PWD" /usr/share/InHeat