#!/bin/bash # -*- mode: sh; tab-width: 8; coding: utf-8-unix -*- prog=`basename $0 .bash` PREFIX=/usr/local ROLE=toxcore . /usr/local/src/usr_local_src.bash || exit 2 # [ `id -u` -eq 0 ] && ERROR $prog should not be run as root && exit 2 export LOG_DIR=$PREFIX/var/log/$ROLE DESC="" cd /usr/local/src || exit 4 if [ "$#" -eq 0 ] ; then # /usr/lib/python3.9/site-packages/owtf/scripts/ssl/verify_ssl_cipher_check.sh [ -f /usr/local/bin/ssl-cipher-check.pl ] || \ wget -cP /usr/local/bin/ http://unspecific.com/ssl/ssl-cipher-check.pl if [ $USER = root ] ; then # https://unix.stackexchange.com/questions/271661/disable-gnome-keyring-daemon command -v keepassxc.bash EXE=`command -v keepassxc.bash` [ -z "$EXE" ] && EXE=`command -v keepassxc` if [ -z "$EXE" ] ; then export PYTHON_KEYRING_BACKEND=keyring.backends.SecretService.Keyring ELTS=`ps ax|grep gnome-keyring-daemon|grep -v grep|sed -e 's/^ *//' -e 's/ .*//'` [ -n "$ELTS" ] && kill $ELTS if [ -d /etc/pam.d ] ; then cd /etc/pam.d grep -l '^[^#].*pam_gnome_keyring.so' * | while read file ; do [ -f .$file.dst ] || cp -p $file .$file.dst sed -e 's/.*pam_gnome_keyring.so.*/#&/' -i $file done fi file=/usr/local/share/dbus-1/services/org.freedesktop.secrets.service if [ ! -f $file ] || ! grep -q $EXE $file ; then cat > $file < ~/.config/autostart/$file <