GIF89a;
Mass Deface Email Grabber
/dev/null 2>&1 } do_check() { is_disabled if [ $? -eq 0 ]; then echo "Legacy CAs are set to DISABLED in file $LCFILE (affects install/upgrade)" LEXPECT=$LDISABLE else echo "Legacy CAs are set to DEFAULT in file $LCFILE (affects install/upgrade)" LEXPECT=$LDEFAULT fi echo "Status of symbolic link $LLINK:" readlink -v $LLINK } do_install() { is_disabled if [ $? -eq 0 ]; then # found, legacy is disabled sln $LDISABLE $LLINK else # expression not found, legacy is set to default sln $LDEFAULT $LLINK fi } do_default() { sed -i 's/^legacy *=.*$/legacy=default/' $LCFILE do_install /usr/bin/update-ca-trust } do_disable() { sed -i 's/^legacy *=.*$/legacy=disable/' $LCFILE do_install /usr/bin/update-ca-trust } do_help() { echo "usage: $0 [check | default | disable | install]" } if [[ $# -eq 0 ]]; then # no parameters do_help exit $? fi if [[ "$1" = "install" ]]; then do_install exit $? fi if [[ "$1" = "default" ]]; then do_default exit $? fi if [[ "$1" = "disable" ]]; then do_disable exit $? fi if [[ "$1" = "check" ]]; then do_check exit $? fi echo "$0: Unsupported command $1" do_help