Skip to content

Commit

Permalink
Fix install script on non server linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Neylix committed Jan 13, 2025
1 parent af609d3 commit db52820
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ echo "Install required system dependencies"
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target

# Prevent upgrade to prompt service restart
sudo sed -i 's/#$nrconf{restart} = '"'"'i'"'"';/$nrconf{restart} = '"'"'a'"'"';/g' /etc/needrestart/needrestart.conf
if [ -f /etc/needrestart/needrestart.conf ]; then
sudo sed -i 's/#$nrconf{restart} = '"'"'i'"'"';/$nrconf{restart} = '"'"'a'"'"';/g' /etc/needrestart/needrestart.conf
fi

sudo apt-get update

Expand Down

0 comments on commit db52820

Please sign in to comment.