archive
/
yubi-lock
Archived
1
Fork 0
This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
yubi-lock/yubi_lock/install/cli.py

16 lines
439 B
Python

import click
from sh import sudo
import os
BASE_DIR = os.path.dirname(os.path.realpath(__file__))
@click.command('install', short_help='Install required files for insertion detection')
@click.option('-v', '--verbose')
def cli(verbose):
if verbose:
print("Exporting UDEV rule...")
sudo.cp(BASE_DIR + "../data/85-yubikey-screen-lock.rules", "/etc/udev/rules.d/85-yubikey-screen-lock.rules")
print('Export complete!')