10 lines
416 B
Bash
Executable File
10 lines
416 B
Bash
Executable File
#!/bin/sh
|
|
# Installs the host connector's read-only helpers and their sudo rule. Run as
|
|
# root on each host the connector reaches.
|
|
set -eu
|
|
here=$(dirname "$0")
|
|
install -d -m 755 /usr/local/libexec/archie
|
|
install -m 755 -o root -g root "$here/directory-sizes" "$here/old-files" /usr/local/libexec/archie/
|
|
install -m 440 -o root -g root "$here/sudoers" /etc/sudoers.d/archie-host
|
|
visudo -cf /etc/sudoers.d/archie-host
|