Commit 2eed552a authored by Tristan A Spakes's avatar Tristan A Spakes

ver. 1.3.5 Attempting a new way of executing bash commands in javascript...

ver. 1.3.5 Attempting a new way of executing bash commands in javascript suggested by Caleeb for temp MFA registration
parent 62ccd444
Pipeline #26107 passed with stages
in 1 minute and 6 seconds
......@@ -24,7 +24,7 @@ function tempMFARegistration() {
var entry = execSync(`echo "$(pkcs15-tool -r 1 --rfc4716 2>/dev/null | openssl x509 -noout -fingerprint -sha1 -inform pem | grep -Po '(?<==).*(?=$)') -> ${uid}"`, (error, stdout, stderr) => {})
alert('Please remove the unregistered smart card and then insert a registered smart card. Ensure it is the only smart card plugged in.')
checkSmartCard()
execSync(`pkexec echo ${entry} >> /etc/pam_pkcs11/digest_mapping`, () => {})
execSync(`pkexec bash -c "echo ${entry} >> /etc/pam_pkcs11/digest_mapping"`, () => {})
} catch(error) {
error = error.toString()
console.log(error)
......
......@@ -6,7 +6,7 @@ if [[ ${CI_COMMIT_REF_NAME} == 'master' ]]; then
else
BRANCH="-${CI_COMMIT_REF_NAME}"
fi
VERSION_NUMBER='1.3.4'
VERSION_NUMBER='1.3.5'
wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo rpm -ivh epel-release-latest-7.noarch.rpm
sudo yum -y install nodejs npm ruby-devel gcc make rpm-build rubygems
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment