Skip to content

Commit

Permalink
Update all default files
Browse files Browse the repository at this point in the history
Missread/missunderstod `ls -1` which `find` replaces.
  • Loading branch information
Johan Wassberg authored and sni committed May 22, 2020
1 parent 8c10cef commit 5e473ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion debian/thruk-base.postinst
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ setup_apache2() {

# activate cookie in existing default virtual hosts
set +e
find /etc/apache2/sites-available/ -iname '*default*' -print -quit | \
find /etc/apache2/sites-available/ -iname '*default*' -print | \
while read file; do
if ! grep thruk_cookie_auth.include $file >/dev/null 2>&1; then
sed -i -e 's|</VirtualHost>|\n Include /usr/share/thruk/thruk_cookie_auth.include\n</VirtualHost>|g' $file
Expand Down
2 changes: 1 addition & 1 deletion debian/thruk-base.postrm
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ set -e

# deactivate cookie in existing default virtual hosts
cleanup_apache() {
find /etc/apache2/sites-available/ -iname '*default*' -print -quit | \
find /etc/apache2/sites-available/ -iname '*default*' -print | \
while read file; do
sed -i -e '/Include \/usr\/share\/thruk\/thruk_cookie_auth.include/d' $file
done
Expand Down

0 comments on commit 5e473ae

Please sign in to comment.