Skip to content

Commit

Permalink
Item1791: fix fresh installation - that log dir doesn't exist on init…
Browse files Browse the repository at this point in the history
…ially

git-svn-id: http://svn.foswiki.org/trunk@4503 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
SvenDowideit authored and SvenDowideit committed Jul 17, 2009
1 parent 3b40a4b commit 20a980b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions core/tools/pkg/debian/changelog
@@ -1,3 +1,9 @@
foswiki (1.0.6-2) unstable; urgency=high

* fix fresh installation :/

-- Sven Dowideit <SvenDowideit@fosiki.com> Sat, 18 Jun 2009 09:53:40 +0100

foswiki (1.0.6-1) unstable; urgency=high

* package now upgrades distributed topics and attachments, by looking for
Expand Down
10 changes: 5 additions & 5 deletions core/tools/pkg/debian/postinst
Expand Up @@ -36,15 +36,15 @@ if [ "$RET" = true ]; then

echo
echo Upgrading distriuted topics and attachments - skipping files changed via the Foswiki
echo see /var/lib/foswiki/log/exclude-topics.lst and /var/lib/foswiki/log/exclude-attachments.lst
echo see /var/log/foswiki/exclude-topics.lst and /var/log/foswiki/exclude-attachments.lst
echo

find /var/lib/foswiki/data -name '*,v' | sed 's/^\///g' | sed 's/,v$//g' > /var/lib/foswiki/log/exclude-topics.lst
find /var/lib/foswiki/data -name '*,v' | sed 's/^\///g' | sed 's/,v$//g' > /var/log/foswiki/exclude-topics.lst

tar -zx -C / --exclude-from=/var/lib/foswiki/log/exclude-topics.lst -f /usr/share/foswiki/foswiki-data.tar.gz
tar -zx -C / --exclude-from=/var/log/foswiki/exclude-topics.lst -f /usr/share/foswiki/foswiki-data.tar.gz

find /var/lib/foswiki/pub -name '*,v' | sed 's/^\///g' | sed 's/,v$//g' > /var/lib/foswiki/log/exclude-attachments.lst
tar -zx -C / --exclude-from=/var/lib/foswiki/log/exclude-attachments.lst -f /usr/share/foswiki/foswiki-pub.tar.gz
find /var/lib/foswiki/pub -name '*,v' | sed 's/^\///g' | sed 's/,v$//g' > /var/log/foswiki/exclude-attachments.lst
tar -zx -C / --exclude-from=/var/log/foswiki/exclude-attachments.lst -f /usr/share/foswiki/foswiki-pub.tar.gz

# clean up the .mailnotify timestamps.
webs="Main Sandbox System Trash _default";
Expand Down

0 comments on commit 20a980b

Please sign in to comment.