andreknieriem / photobooth

A photobooth Web-Application for raspberry pi with gphoto2
https://photobooth.andrerinas.de/
MIT License
294 stars 163 forks source link

Absolute path in config #283

Closed Matz3187 closed 3 years ago

Matz3187 commented 3 years ago

Hello Guys,

I have a problem with photobooth. I want so save pictures on USB drive. When I change the image path in config to an absolute path "/media/usbdrive" (mounted USB drive). photobooth will create a folder in wwwroot named media and inside folder usbdrive.

Is there any posibility to set image path to an absolute path.

Kind Regards Matthias

andi34 commented 3 years ago

Not tested, but a symbolic link might work.

sudo mv /var/www/html/data/images /var/www/html/data/images-bak
ln -s /media/usbdrive /var/www/html/data/images
sudo chown -R www-data:www-data /var/www/
sudo chown -R www-data:www-data /media/usbdrive/

https://linuxize.com/post/how-to-create-symbolic-links-in-linux-using-the-ln-command/

Else the file sync feature inside my Photobooth v3 release might be interesting for you: https://github.com/andi34/photobooth/releases/tag/v3.0.0

Matz3187 commented 3 years ago

Thank you :)

This solution worked for me.

Kind Regards Matthias