Subversion Repositories ALCASAR

Rev

Rev 2502 | Rev 2532 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2502 Rev 2506
Line 155... Line 155...
155
echo "</font>" >> $TMP_HTML
155
echo "</font>" >> $TMP_HTML
156
echo "</body>" >> $TMP_HTML
156
echo "</body>" >> $TMP_HTML
157
echo "</HTML>" >> $TMP_HTML
157
echo "</HTML>" >> $TMP_HTML
158
 
158
 
159
# inform users about that by setting the Alcasar-Imputability-Warning attribute
159
# inform users about that by setting the Alcasar-Imputability-Warning attribute
160
QUERY="INSERT INTO radreply (username, attribute, value, op) SELECT ui.username, 'Alcasar-Imputability-Warning', '1' , ':=' FROM userinfo ui LEFT JOIN radreply rr ON rr.username = ui.username AND rr.attribute = 'Alcasar-Imputability-Warning' WHERE rr.username IS NULL;"
160
QUERY="INSERT INTO radreply (username, attribute, value, op) SELECT ui.username, 'Alcasar-Imputability-Warning', '1' , '=' FROM userinfo ui LEFT JOIN radreply rr ON rr.username = ui.username AND rr.attribute = 'Alcasar-Imputability-Warning' WHERE rr.username IS NULL;"
161
mysql -u root -p"$DB_ROOT_PW" -D radius -e "$QUERY"
161
mysql -u root -p"$DB_ROOT_PW" -D radius -e "$QUERY"
162
 
162
 
163
/usr/bin/wkhtmltopdf $TMP_HTML $TMP_PDF
163
/usr/bin/wkhtmltopdf $TMP_HTML $TMP_PDF
164
 
164
 
165
 
165