Mini Shell

Direktori : /etc/profile.d/
Upload File :
Current File : //etc/profile.d/sharedrads.sh

# If interactive
if [ "${PS1}" ]; then
    # if root
    if [ "$EUID" -eq 0 ]; then
        export PATH="${PATH}:/opt/sharedrads:/opt/sharedrads/extras:/opt/sharedrads/mysql:/opt/spamassassin/bin"
        alias sl='/opt/sharedrads/server-load'
        alias suspendacct='/opt/sharedrads/suspend_user'
        alias unsuspendacct='/opt/sharedrads/unsuspend_user'
    # if in a staff group
    elif id -Gn | /bin/grep -qP '\b(?:tier1adv|tier1|tier1e|aps|tier2s|managedhosting|engineering|tier3)(@ipa.imhtech.net)?\b' || (id -Gn | grep -qP '@ipa.imhtech.net'); then
        export PATH="${PATH}:/opt/sharedrads"
        alias account-review='sudo /opt/sharedrads/account-review'
        alias check_cpu='sudo /opt/sharedrads/check_cpu'
        alias upgrade-check='sudo /opt/sharedrads/upgrade-check'
        alias check_software='sudo -H /opt/sharedrads/check_software'
        alias dns-sync='sudo /opt/sharedrads/dns-sync'
        alias addspf='sudo /opt/sharedrads/update_spf'
        alias remote_dump='sudo /opt/sharedrads/remote_dump'
        alias hostsfilemods='sudo /opt/sharedrads/hostsfilemods'
        alias check_mailchannels_dns='sudo /opt/sharedrads/check_mailchannels_dns'
    fi
fi

Zerion Mini Shell 1.0