diff options
author | Sam Chudnick <sam@chudnick.com> | 2023-06-11 08:13:54 -0400 |
---|---|---|
committer | Sam Chudnick <sam@chudnick.com> | 2023-06-11 08:13:54 -0400 |
commit | f8527f77547ef8c2bd1f94633672b674d4920f88 (patch) | |
tree | 4aa4590f414d9a98e485ba43f11dca181df2b0a4 /utils | |
parent | 30cc1d47d8bb76a2f9c773503f476000d42573ca (diff) |
Add installation scripts
Diffstat (limited to 'utils')
-rw-r--r-- | utils/install_pam.sh | 5 | ||||
-rw-r--r-- | utils/install_server.sh | 9 |
2 files changed, 14 insertions, 0 deletions
diff --git a/utils/install_pam.sh b/utils/install_pam.sh new file mode 100644 index 0000000..1cb2149 --- /dev/null +++ b/utils/install_pam.sh | |||
@@ -0,0 +1,5 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | make install | ||
4 | cp pam/pam_mfa.py /usr/bin | ||
5 | chmod 755 /usr/bin/pam_mfa.py | ||
diff --git a/utils/install_server.sh b/utils/install_server.sh new file mode 100644 index 0000000..fcb5b81 --- /dev/null +++ b/utils/install_server.sh | |||
@@ -0,0 +1,9 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | cp server/mfad.py server/mfac.py /usr/bin | ||
4 | chmod 755 /usr/bin/mfad.py /usr/bin/mfac.py | ||
5 | ln -s /usr/bin/mfad.py /usr/bin/mfad | ||
6 | ln -s /usr/bin/mfac.py /usr/bin/mfac | ||
7 | |||
8 | mkdir -p /etc/mfa | ||
9 | cp mfa.conf /etc/mfa/ | ||