corz.org uses cookies to remember that you've seen this notice explaining that corz.org uses cookies, okay!
if [ -z $1 ]; then
echo
echo "Please supply a domain name on the command-line. e.g.."
echo
echo "$0 foobar.net"
echo
echo "grabcomments will then use settings file: ~/.sftp/foobar.net"
echo
exit 1
fi
. ~/.sftp/$1
echo "comment chmod script.."
echo "Performing sftp operations for $user@$host.."
sftp -b "/usr/local/bin/$host/chmodcomments" $user@$host
rc=$?
if [ $rc != 0 ] ; then
echo "**WARNING** chmodcomments sftp for $host returned an error: $rc"
echo "**WARNING** chmodcomments sftp for $host returned an error: $rc"|mailx -s "Error in up chmodcomments sftp!" postmaster
exit $rc
fi
echo "Setting local comment file permissions.."
for i in $( find $home -name "*.comment" ); do chmod 777 $i; done
now=`date "+%Y.%m.%d-%H.%M"`
command -v fortune >/dev/null 2>&1 || { echo "Oooh! That Feels Good!"; exit 0; }
fortune
echo "chmodcomments for $host complete at $now"
exit 0
Welcome to corz.org!
Since switching hosts (I hope you are alright, Ed! Wherever you are …) quite a few things seems to be wonky.
Juggling two energetic boys (of very different ages) on Coronavirus lockdown, I'm unlikely to have them all fixed any time soon. Mail me! to prioritise!