mirror of
https://github.com/linuxserver/docker-piwigo.git
synced 2025-04-19 10:54:42 -04:00
Add galleries to /gallery symlinks
This commit is contained in:
parent
06f97b4539
commit
553a78c0e4
1 changed files with 7 additions and 3 deletions
|
@ -3,7 +3,8 @@
|
|||
# make our folders
|
||||
mkdir -p \
|
||||
/config/www/piwigo \
|
||||
/gallery/upload
|
||||
/gallery/upload \
|
||||
/gallery/galleries
|
||||
|
||||
# Migrate old data
|
||||
if [[ -f /gallery/index.php ]]; then
|
||||
|
@ -19,13 +20,16 @@ if [[ -f /gallery/index.php ]]; then
|
|||
rm /config/www/gallery
|
||||
sed -i "s|root /config/www/gallery;|root /app/www/public;|" /config/nginx/site-confs/default.conf
|
||||
echo "Migration completed."
|
||||
echo "You can now safely delete everything in /gallery *except* for the upload folder"
|
||||
echo ""
|
||||
echo "You can now safely delete everything in /gallery *except*"
|
||||
echo "for the upload and galleries directories"
|
||||
echo ""
|
||||
echo "*******************************************************************************"
|
||||
fi
|
||||
|
||||
rm -rf /app/www/public/upload
|
||||
rm -rf /app/www/public/{upload,galleries}
|
||||
ln -s /gallery/upload /app/www/public/upload
|
||||
ln -s /gallery/galleries /app/www/public/galleries
|
||||
|
||||
shopt -s globstar dotglob
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue