dw-0 / kiauh

Klipper Installation And Update Helper
GNU General Public License v3.0
3.43k stars 497 forks source link

fix: create_required_folders removes symlink to gcodes #450

Closed boecko closed 3 months ago

boecko commented 8 months ago

Linux Distribution

Raspbian GNU/Linux 12 (bookworm)

What happened

I'm managing my printfiles on my nextcloud-folder. ~/printer_data/gcodes -> /home/pi/Nextcloud/printer_data/gcodes This is folder is automatically synced via cron by issuing following command

nextcloudcmd   -n -s \
               --path 3dprint \
               ~/Nextcloud \
               https://nextcloud.example.com 

After installing moonraker-telegram-bot via your awesome script i've notices that my gcode files weren't available in telegram or fluidd. Turned out that create_required_folders replaced my symlink gcodes -> /home/pi/Nextcloud/printer_data/gcodes with an empty directory.

What did you expect to happen

The symlink shouldn't be touched. ~/printer_data/gcodes -> /home/pi/Nextcloud/printer_data/gcodes

How to reproduce

Additional information

No response

dw-0 commented 3 months ago

This should be fixed with KIAUH v6 which's alpha got released just a minute ago.