install_piratebox.sh : fix distribute directory listing files

Do not distribute custom directory listing files during init if
that was disabled in piratebox.conf.

This is needed for customization.
This commit is contained in:
Matthias Strubel 2017-05-14 12:49:55 +02:00
parent cf0869f2c2
commit 89165c03a7

View file

@ -66,7 +66,9 @@ if [ $2 = 'part2' ] ; then
mkdir -p $PIRATEBOX_FOLDER/tmp
#Distribute the Directory Listing files
$PIRATEBOX_FOLDER/bin/distribute_files.sh $SHARE_FOLDER/Shared true
if [ "$CUSTOM_DIRLIST_COPY" = "yes" ] ; then
$PIRATEBOX_FOLDER/bin/distribute_files.sh $SHARE_FOLDER/Shared true
fi
#Set permissions
chown $LIGHTTPD_USER:$LIGHTTPD_GROUP $PIRATEBOX_FOLDER/share -R
chmod u+rw $PIRATEBOX_FOLDER/share