File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 88
99echo $PASSWORD | openconnect -b --user=$VPNUSERNAME --authgroup=$AUTHGROUP --passwd-on-stdin $HOST
1010echo " $( date +" %b %d %H:%M:%S" ) $HOSTNAME entrypoint.sh[$$ ]: Started openconnect."
11- echo -e " root=${USERNAME} \nmailhub=studgate.dhbw-mannheim.de:25\nrewriteDomain=student.dhbw-mannheim.de\nhostname=campusnet.docker.local\nAuthUser=${USERNAME} \nAuthPass=${PASSWORD} \nAuthMethod=LOGIN\nFromLineOverride=no " > /etc/ssmtp/ssmtp.conf
11+ echo -e " root=${USERNAME} \nmailhub=studgate.dhbw-mannheim.de:25\nrewriteDomain=student.dhbw-mannheim.de\nhostname=campusnet.docker.local\nAuthUser=${USERNAME} \nAuthPass=${PASSWORD} \nAuthMethod=LOGIN\nFromLineOverride=yes " > /etc/ssmtp/ssmtp.conf
1212echo -e " root:${USERNAME} :studgate.dhbw-mannheim.de:25" > /etc/ssmtp/revaliases
1313echo " $( date +" %b %d %H:%M:%S" ) $HOSTNAME entrypoint.sh[$$ ]: Updated ssmtp configuration."
1414
Original file line number Diff line number Diff line change @@ -7,6 +7,6 @@ if [ ! -s grades.txt ]; then
77fi
88/usr/bin/diff grades.txt /tmp/grades.txt > /tmp/diff.txt
99if [ -s /tmp/diff.txt ]; then
10- (echo -e ' Subject : Grades changed\n\n' ; cat /tmp/diff.txt; echo -e ' \n\nAll grades:\n' ; cat /tmp/grades.txt) | /usr/sbin/sendmail $NOTIFY_RECIPIENT
10+ (echo -e " From : Grades < ${USERNAME} >\nSubject: Grades changed\n\n" ; cat /tmp/diff.txt; echo -e ' \n\nAll grades:\n' ; cat /tmp/grades.txt) | /usr/sbin/sendmail $NOTIFY_RECIPIENT
1111fi
1212mv /tmp/grades.txt grades.tx
You can’t perform that action at this time.
0 commit comments