Skip to content

Commit

Permalink
Fixes issue #65 - can not restart container (#66)
Browse files Browse the repository at this point in the history
Co-authored-by: Aurélien Thévoz <[email protected]>
  • Loading branch information
yenyen and Aurélien Thévoz authored Sep 26, 2023
1 parent 3a5eb02 commit 439edae
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 439edae

Please sign in to comment.