install: Check for existing service file
Don't overwrite service file for KlipperScreen on running install script.
This commit is contained in:
1 parent
0e1c30879b
commit
e7b3b963c3
1 file changed
+4
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user