restorePrivileges method

void restorePrivileges()

If a prior call to releasePrivileges has been made then this command will restore those privileges If releasePrivileges hasn't been called then this method does nothing.

Implementation

void restorePrivileges() {
  verbose(() => 'restorePrivileges called');
  priviledgedUser.runIf((user) {
    verbose(() => 'restore - builer');
    user.build();
    initgroups(user.username);
  });
}