Add execute permission to script

If the file is not executable, the service system will not load it, and will return a 203/EXEC error (file not found).
This commit is contained in:
Maxime Chourré 2024-04-18 08:39:01 +02:00 committed by GitHub
parent 031a86d73b
commit e15c2060a6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -46,6 +46,7 @@ fi
echo "Cloning AutomaticBrighness.sh..." echo "Cloning AutomaticBrighness.sh..."
sudo cp AutomaticBrightness.sh /usr/local/bin/AutomaticBrightness.sh sudo cp AutomaticBrightness.sh /usr/local/bin/AutomaticBrightness.sh
sudo chmod u+x /usr/local/bin/AutomaticBrightness.sh
echo "Cloning AB.service for systemD..." echo "Cloning AB.service for systemD..."
sudo cp AB.service /etc/systemd/system/AB.service sudo cp AB.service /etc/systemd/system/AB.service