Scripts

Checking all domains on a Plesk box for reverse DNS

Available at http://partytime.wackyfunster.com/leet/plesk_rdns_check.sh

Checks every domain in /home/httpd/vhosts for forward lookup and reverse lookup, and outputs the results. Output may be more readable when piped into sort.

Submitted by jkelly on Fri, 2006-12-01 06:43. categories [ | | ] read more

Snapshot script for crashing boxes

This script will be updated and available at: http://partytime.wackyfunster.com/leet/snapshot.sh
I made a noarch RPM version as well, for those who prefer: http://partytime.wackyfunster.com/leet/snapshot-1.02.noarch.rpm

Submitted by jkelly on Thu, 2006-11-30 01:43. categories [ | ] read more

Plesk upgrade script

http://partytime.wackyfunster.com/leet/pleskpreinstall
This script:
* Determines current redhat and plesk versions and downloads the necessary files for the upgrade from sw-soft
* blows up tomcat entries in the database (YAY!)
* prints mysql and php versions

Submitted by jkelly on Sat, 2006-09-23 04:14. categories [ | ] read more

Plesk ACL script

pleskacl.sh

#!/bin/bash
# for each domain directory
for i in `ls /home/httpd/vhosts|grep '\.'`
do
# get the username for the directory
user=`ls -ld /home/httpd/vhosts/$i/httpdocs|awk {'print $3'}`
# set up the acls
echo "Setting file acls for $user on $i/httpdocs"
setfacl -m u:$user:rwx -R /home/httpd/vhosts/$i/httpdocs
setfacl -d -m u:$user:rwx -R /home/httpd/vhosts/$i/httpdocs
echo "Setting file acls for $user on $i/httpsdocs"
setfacl -m u:$user:rwx -R /home/httpd/vhosts/$i/httpsdocs
setfacl -d -m u:$user:rwx -R /home/httpd/vhosts/$i/httpsdocs
# profit
done

Submitted by jkelly on Sat, 2006-09-23 04:04. categories [ | ] read more
Syndicate content