Skip to content

Commit

Permalink
🚨 fix service file rights linter warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ad2ien committed Jun 3, 2024
1 parent 9681679 commit 8ad02b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion debian-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ if [ "$SPECIAL_OWNER" != "root" ]; then
fi
sudo chmod -R 755 ./${DEBIAN_FOLDER}/usr
sudo chmod -R 755 ./${DEBIAN_FOLDER}/etc
sudo chmod -x ./${DEBIAN_FOLDER}/etc/systemd/user/capslock-auto-switch.service
sudo chmod -R 755 ./${DEBIAN_FOLDER}/usr/share/
sudo chmod 644 ./${DEBIAN_FOLDER}/usr/share/doc/${BINARY_NAME}/*
sudo chmod a-x ./${DEBIAN_FOLDER}/usr/share/man/man1/capslock-auto-switch.1.gz
Expand All @@ -57,7 +58,7 @@ if [ "$1" = "--lint" ]; then
docker run --rm -it -v ./${PKG_NAME}.deb:/app/${PKG_NAME}.deb nouchka/lintian -c /app/${PKG_NAME}.deb -v
fi

sudo chown $SPECIAL_OWNER:$SPECIAL_OWNER ./${DEBIAN_FOLDER}/etc/systemd/user
sudo chown -R $SPECIAL_OWNER:$SPECIAL_OWNER ./${DEBIAN_FOLDER}/etc
sudo chown -R $SPECIAL_OWNER:$SPECIAL_OWNER ./${DEBIAN_FOLDER}/usr

echo "🎉 Done! 🎉"

0 comments on commit 8ad02b3

Please sign in to comment.