piratebox init: content symlink is not created.

If a content folder is already available, the symlink pointing to
that folder is not created. This results in an issue that
upgrades from 1.1.x to 1.1.x end up in a redirect loop in the
browser.
This commit is contained in:
Matthias Strubel 2016-10-05 07:37:56 +02:00
parent 9128647a4a
commit d29df45de9
2 changed files with 6 additions and 0 deletions

View File

@ -1,5 +1,8 @@
CHANGELOG
=== 1.1.2 ===
* [Fix] Upgrade 1.1.x - 1.1.x does not create content symlink
=== 1.1.1 ===
* [Fix] Translation en,fr LibraryBox -> PirateBox
* [Fix] Spellings in translation

View File

@ -83,6 +83,9 @@ if [ $2 = 'part2' ] ; then
[ ! -L $PIRATEBOX_FOLDER/www/board ] && ln -s $PIRATEBOX_FOLDER/share/board $PIRATEBOX_FOLDER/www/board
[ ! -L $PIRATEBOX_FOLDER/www/Shared ] && ln -s $UPLOADFOLDER $PIRATEBOX_FOLDER/www/Shared
[ ! -L $PIRATEBOX_FOLDER/www/content ] && \
ln -s $WWW_CONTENT $WWW_FOLDER/content
fi
#Install the image-board