Send a fail status if chcon fails
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
This commit is contained in:
parent
19118008b1
commit
06d2e6f6cd
1 changed files with 2 additions and 2 deletions
|
|
@ -130,8 +130,8 @@ sendStatus "installing runner service"
|
|||
./svc.sh install {{ .RunnerUsername }} || fail "failed to install service"
|
||||
|
||||
if [ -e "/sys/fs/selinux" ];then
|
||||
sudo chcon -h user_u:object_r:bin_t /home/runner/
|
||||
sudo chcon -R -h {{ .RunnerUsername }}:object_r:bin_t /home/runner/*
|
||||
sudo chcon -h user_u:object_r:bin_t /home/runner/ || fail "failed to change selinux context"
|
||||
sudo chcon -R -h {{ .RunnerUsername }}:object_r:bin_t /home/runner/* || fail "failed to change selinux context"
|
||||
fi
|
||||
|
||||
sendStatus "starting service"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue