Blame Artworks/Webenv/Mailman/2.1.9-6.el5/install.sh

Alain Reguera Delgado 1d8e13
#!/bin/bash
Alain Reguera Delgado 1d8e13
Alain Reguera Delgado 1d8e13
function install_template {
Alain Reguera Delgado 1d8e13
    local MAILMAN=/usr/lib/mailman
Alain Reguera Delgado 1d8e13
    local MAILMAN_THEMES_BASEDIR=themes/centos
Alain Reguera Delgado 1d8e13
    local SOURCE=${1}
Alain Reguera Delgado 1d8e13
    local TARGET=${MAILMAN}/${MAILMAN_THEMES_BASEDIR}/$(echo ${SOURCE} | sed 's/\.new//')
Alain Reguera Delgado 1d8e13
    sudo cp ${SOURCE} ${TARGET}
Alain Reguera Delgado 1d8e13
    echo "${SOURCE} installed at ${TARGET}"
Alain Reguera Delgado 1d8e13
}