Skip to content
Snippets Groups Projects
Commit b5a5f4b6 authored by Davide Cardillo's avatar Davide Cardillo
Browse files

[WESTON-INIT] Fix weston.service using root user

FIXME: weston should be run as weston, not as root
parent a5687e77
Branches
Tags
1 merge request!10Draft: [WESTON-INIT] Fix weston.service using root user
update_file() {
if ! grep -q "$1" $3; then
bbfatal $1 not found in $3
fi
sed -i -e "s,$1,$2," $3
}
do_install:append() {
# FIXME: weston should be run as weston, not as root
update_file "User=weston" "User=root" ${D}${systemd_system_unitdir}/weston.service
update_file "Group=weston" "Group=root" ${D}${systemd_system_unitdir}/weston.service
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment