Add galleries to /gallery symlinks

This commit is contained in:
TheSpad 2022-11-09 14:11:12 +00:00
parent 06f97b4539
commit 553a78c0e4
No known key found for this signature in database
GPG key ID: 08F06191F4587860

View file

@ -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