install: Check for existing service file

Don't overwrite service file for KlipperScreen on running install 
script.
This commit is contained in:
Jordan Ruthe
2021-04-18 23:45:54 -04:00
parent 0e1c30879b
commit e7b3b963c3

View File

@@ -29,6 +29,10 @@ create_virtualenv()
install_systemd_service()
{
if [ -f "/etc/systemd/system/KlipperScreen.service" ]; then
echo "KlipperScreen unit file already installed"
return
fi
echo "Installing KlipperScreen unit file"
SERVICE=$(<$SCRIPTPATH/KlipperScreen.service)