Skip to content

Commit

Permalink
Fixes issue LibreBooking#65 - can not restart container
Browse files Browse the repository at this point in the history
  • Loading branch information
Aurélien Thévoz committed Sep 26, 2023
1 parent 3a5eb02 commit 206b9d5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,11 @@ fi
# Create the plugins configuration file inside the volume
for source in $(find /var/www/html/plugins -type f -name "*dist*"); do
target=$(echo "${source}" | sed -e "s/.dist//")
cp --no-clobber "${source}" "/config/$(basename ${target})"
chown www-data:www-data "/config/$(basename ${target})"
ln -s "/config/$(basename ${target})" "${target}"
if ! [ -f "/config/$(basename ${target})" ]; then
cp --no-clobber "${source}" "/config/$(basename ${target})"
chown www-data:www-data "/config/$(basename ${target})"
ln -s "/config/$(basename ${target})" "${target}"
fi
done

# Set timezone
Expand Down

0 comments on commit 206b9d5

Please sign in to comment.