summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorSam Chudnick <sam@chudnick.com>2023-06-11 08:13:54 -0400
committerSam Chudnick <sam@chudnick.com>2023-06-11 08:13:54 -0400
commitf8527f77547ef8c2bd1f94633672b674d4920f88 (patch)
tree4aa4590f414d9a98e485ba43f11dca181df2b0a4 /utils
parent30cc1d47d8bb76a2f9c773503f476000d42573ca (diff)
Add installation scripts
Diffstat (limited to 'utils')
-rw-r--r--utils/install_pam.sh5
-rw-r--r--utils/install_server.sh9
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
3make install
4cp pam/pam_mfa.py /usr/bin
5chmod 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
3cp server/mfad.py server/mfac.py /usr/bin
4chmod 755 /usr/bin/mfad.py /usr/bin/mfac.py
5ln -s /usr/bin/mfad.py /usr/bin/mfad
6ln -s /usr/bin/mfac.py /usr/bin/mfac
7
8mkdir -p /etc/mfa
9cp mfa.conf /etc/mfa/