trunk: modified _MAIL_SUBJECT behaviour to also work with VServers
intrigeri
18 years ago
71 | 71 | |
72 | 72 | email() { |
73 | 73 | debug "* email $@" |
74 | local subject="$_MAIL_SUBJECT : $1" | |
74 | local subject="`current_system` - $_MAIL_SUBJECT : $1" | |
75 | 75 | if [ $ENCRYPT_EMAIL = "yes" ]; then |
76 | 76 | LC_ALL="$LOCALE" gpg --batch --armor --encrypt \ |
77 | 77 | --recipient "$EMAIL_ADDRESS" | |
111 | 111 | VSERVERINFO=/usr/sbin/vserver-info |
112 | 112 | VSERVER=/usr/sbin/vserver |
113 | 113 | |
114 | _MAIL_SUBJECT="`hostname -f` - changes report" | |
114 | _MAIL_SUBJECT="changes report" | |
115 | 115 | _NO_DEBIAN_PACKAGES_CHANGE="No change in Debian packages state." |
116 | 116 | _NO_CHANGE="No change." |
117 | 117 | |
777 | 777 | milestone_version "stable-200507040202" |
778 | 778 | milestone_version "testing-latest" |
779 | 779 | milestone_date "testing-latest" |
780 | #report_changes "testing-latest" | email "testing-$DATE" | |
780 | 781 | ;; |
781 | 782 | |
782 | 783 | *) |