Author:

Security Update Check Using GLSA

Security Update Check Using GLSA

Date: 08/20/2009
Program Name: Security Update Check Using GLSA
Description: The object of this script is to get an update respiratory from a Gentoo server and check to see if their is any security issues that effect a system.

#!/bin/bash
 
# The script will check for new Security updates available in portage

#Information needed inorder to mail the admin
echo "From: root@test.com" >> $stat
echo "To: admin@test.com" >> $stat
echo "Subject: System Security Check" >> $stat
 
echo -e "Security Check Report for $HOSTNAME $(date)\n-------------------------------------------\n" >> $stat
#Were going to update The package Libarary
emerge --sync >> $stat
 
# Then check if it went ok
result=$(grep 'metadata/glsa/timestamp.chk' /tmp/test.txt)
 
if [ !$result ]; then
    echo -e "The Portage Library Update Failed. Here is the last message that was picked up by Portage.\n" >> $stat
    tail -n10 /tmp/test.txt >> $stat
    echo -e "\n-------------------------------------------\n" >> $stat
    echo -e "\nThings to Check with the system:\nPlease check if the system is able to resovle name server.\nCheck if their is any conitivity on the network.\nCall an Admin!!" >> $stat
else
    echo -e "The Portage Library Update Works! Doing a security Check on the system\n" >> $stat
    glsa-check --list affected >> $stat
    echo -e "\n System security Check Completed.\n-------------------------------------------" >> $stat
fi
 
#Mail the Results
cat $stat | /usr/sbin/sendmail -t -bm -v
#Clean up the mess
echo "" > $stat
Slow-Cooker Barbecued Ribs

Slow-Cooker Barbecued Ribs

Cooking Info Tools

Measuring Guide
Slow Cooking Conversions

Ingredients

  • 3 1/2 pounds pork loin back ribs
  • 1/4 cup packed brown sugar
  • 1 teaspoon salt
  • 1/2 teaspoon pepper
  • 3 tablespoons liquid smoke
  • 2 garlic cloves, chopped
  • 1 medium onion, sliced
  • 1/2 cup cola
  • 1 1/2 cups barbecue sauce

Directions

Spray inside of 4- to 5-quart slow cooker with cooking spray.
Remove inner skin from ribs. Mix brown sugar, salt, pepper, liquid smoke and garlic; rub mixture into ribs. Cut ribs into 4-inch pieces. Layers ribs and onion in slow cooker. Pour cola over ribs.
Cover and cook on low heat setting 8 to 9 hours or until tender. Remove ribs from slow cooker. Drain and discard liquid. Pour barbecue sauce into shallow bowl. Dip ribs into sauce. Place ribs in slow cooker. Pour any remaining sauce over ribs. Cover and cook on low heat setting 1 hour.
Note: This recipe was tested in slow cookers with heating elements in the side and bottom of the cooker, not in cookers that stand only on a heated base. For slow cookers with just a heated base, follow the manufacturer.s directions for layering ingredients and choosing a temperature.

Tips

(Total time will vary with appliance and setting.)

Ribs go great with deli coleslaw, biscuits and frosty mugs of beer.

Spraying the inside of the slow cooker with cooking spray makes cleanup a snap.

%d bloggers like this: