File: setup_sudoers_defaults

package info (click to toggle)
python-mitogen 0.3.43-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 6,816 kB
  • sloc: python: 24,940; sh: 144; makefile: 74; perl: 19; ansic: 18
file content (12 lines) | stat: -rwxr-xr-x 426 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env bash
# SPDX-FileCopyrightText: 2026 Mitogen authors <https://github.com/mitogen-hq>
# SPDX-License-Identifier: BSD-3-Clause
set -o errexit -o nounset -o pipefail

SUDOERS_DEFAULTS_SRC='tests/image_prep/roles/sudoers/files/defaults'
SUDOERS_DEFAULTS_DEST='/etc/sudoers.d/mitogen_test_defaults'

umask 0022
sudo cp "$SUDOERS_DEFAULTS_SRC" "$SUDOERS_DEFAULTS_DEST"
sudo visudo -cf "$SUDOERS_DEFAULTS_DEST"
sudo -l