* Remove dynamic memory usage from core * Refacor status check to use json pointers * Move access token to session * Remove code duplication * Fix compile warnings from rapidjson sources * Add 'interactive mode option to session configuration * Implement non interactive mode connector * Add 'non interactove' implementation * Apply rapidjson patch * Build on all cores * Rename build script * Split configure and build steps * Add scripts for building all images * Change bash to python for build scripts * Stop printing methods name in non interactive mode * Add trace log level, adn more params to init message * Fix build * Fix non interactive method selection and refactor vagrant files for debian like systems * Refactor log messages * Remove exces dependencies from vagrant configuration files * Fixed vagrantfiles * Added repo for rhel * Add nonInteractiveMode option * Added instalation script for pubkey * Fixed pubkey install script and postrm for rhel
31 lines
693 B
Bash
31 lines
693 B
Bash
#!/bin/bash
|
|
|
|
RUBLON_CONFIG=/etc/rublon.config
|
|
RUBLON_SSH_CONFIG=/etc/ssh/sshd_config.d/01-rublon-ssh.conf
|
|
SSHD_PAM_CONF=/etc/pam.d/sshd
|
|
VERITAS_PATH=/usr/openv/netbackup/sec/at/bin/
|
|
|
|
if [ -f $RUBLON_CONFIG ]
|
|
then
|
|
rm $RUBLON_CONFIG
|
|
fi
|
|
|
|
if [ -f $RUBLON_SSH_CONFIG ]
|
|
then
|
|
|
|
rm $RUBLON_SSH_CONFIG
|
|
fi
|
|
|
|
if [ -d $VERITAS_PATH ]
|
|
then
|
|
sudo rm /etc/pam.d/rublon
|
|
sudo rm /usr/openv/netbackup/pam_service.txt
|
|
else
|
|
grep -qe 'auth substack password-auth' $SSHD_PAM_CONF || sed -i -e 's/#auth substack password-auth/auth substack password-auth/g' $SSHD_PAM_CONF
|
|
sed -i '/auth required pam_rublon.so/d' $SSHD_PAM_CONF
|
|
sed -i '/account required pam_rublon.so/d' $SSHD_PAM_CONF
|
|
fi
|
|
|
|
|
|
|