[fix] ensure aliases start by /
This commit is contained in:
parent
29ce982d40
commit
1752408651
|
@ -20,6 +20,7 @@ install:
|
|||
install -m 0644 -g root -o root ssl.sql $(DESTDIR)/usr/share/alternc/install/
|
||||
install -m 0755 -g root -o root alternc-ssl.install.php $(DESTDIR)/usr/lib/alternc/install.d/alternc-ssl
|
||||
install -m 0644 -g root -o root README.txt $(DESTDIR)/var/lib/alternc/ssl/private/
|
||||
install -m 0644 -g root -o root apache2.conf $(DESTDIR)/etc/apache2/conf.d/alternc-ssl-alias.conf
|
||||
|
||||
# incron
|
||||
install -m 0755 -g root -o root ssl_alias_manager.sh $(DESTDIR)/usr/lib/alternc/
|
||||
|
|
|
@ -15,8 +15,8 @@ mkdir -p "$FILEDIR"
|
|||
|
||||
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
|
||||
echo "$content" >"${FILEDIR}${name}"
|
||||
echo "alias /$name ${FILEDIR}/${name}" >>$TMP
|
||||
echo "$content" >"${FILEDIR}/${name}"
|
||||
done
|
||||
if ! diff -q "$TMP" "$APACHECONF"
|
||||
then
|
||||
|
|
Loading…
Reference in New Issue