Installer: always unmask the service and enable

This commit is contained in:
alfrix committed 2022-01-26 09:07:26 -03:00
1 parent 21b0466f95
commit c8a8f020af
1 file changed
+3 -1
+3 -1
View File
@@ -76,6 +76,9 @@ install_systemd_service()
{
if [ -f "/etc/systemd/system/KlipperScreen.service" ]; then
echo_text "KlipperScreen unit file already installed"
sudo systemctl unmask KlipperScreen.service
sudo systemctl daemon-reload
sudo systemctl enable KlipperScreen
return
fi
echo_text "Installing KlipperScreen unit file"
@@ -115,7 +118,6 @@ start_KlipperScreen()
echo_text "Starting service..."
sudo systemctl start KlipperScreen
}
if [ "$EUID" == 0 ]
then echo_error "Plaease do not run this script as root"
exit