[fix] ssl_alias_manager now working

This commit is contained in:
Benjamin Sonntag 2015-02-24 19:59:10 +01:00
parent 1752408651
commit d8061c381f
1 changed files with 3 additions and 0 deletions

View File

@ -13,6 +13,9 @@ FILEDIR=/var/lib/alternc/ssl-cert-alias
rm -f "$TMP"
mkdir -p "$FILEDIR"
echo "# this file is autogenerated from /usr/lib/alternc/ssl_alias_manager.sh" >$TMP
echo "# Please do not edit, your changes will be overwritten" >>$TMP
mysql --defaults-file=/etc/alternc/my.cnf --skip-column-names -B -e "SELECT name,content FROM certif_alias;" | while read name content
do
echo "alias /$name ${FILEDIR}/${name}" >>$TMP