#!/bin/bash

exit 0

if ! [ -d opt ]; then
    echo "Run this script from the root of the 'httpd' chroot."
fi

cd opt

[ -d smtpwrapper/usr/bin ] || mkdir -p smtpwrapper/usr/bin
cd smtpwrapper/usr/bin

wget http://tools.3gteam.hu/chroot-tools/httpd/bin/smtp-wrapper

chmod 755 smtp-wrapper

cd ../../../../usr/bin
ln -s ../../opt/smtpwrapper/usr/bin/smtp-wrapper
