mirror of https://github.com/k3s-io/k3s.git
Fix wrong warning from restorecon in install script (#8871)
* Fix wrong warning from restorecon in install script Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com> * Fix wrong warning from restorecon in install script Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com> --------- Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>
This commit is contained in:
parent
78ea593780
commit
fd8db56d5a
|
@ -967,8 +967,8 @@ create_service_file() {
|
|||
}
|
||||
|
||||
restore_systemd_service_file_context() {
|
||||
restorecon -R -i ${FILE_K3S_SERVICE} || true
|
||||
restorecon -R -i ${FILE_K3S_ENV} || true
|
||||
$SUDO restorecon -R -i ${FILE_K3S_SERVICE} 2>/dev/null || true
|
||||
$SUDO restorecon -R -i ${FILE_K3S_ENV} 2>/dev/null || true
|
||||
}
|
||||
|
||||
# --- get hashes of the current k3s bin and service files
|
||||
|
|
Loading…
Reference in New Issue