diff --git a/arty.yml b/arty.yml index d5b856d..79adfe1 100644 --- a/arty.yml +++ b/arty.yml @@ -138,7 +138,8 @@ scripts: vim \ htop \ tmux \ - net-tools + net-tools \ + davfs2 echo "" echo "✓ System packages installed successfully" @@ -331,6 +332,51 @@ scripts: echo "To manage: supervisorctl status" echo "Web UI: http://localhost:9001 (admin/runpod2024)" + setup/webdav: | + echo "=========================================" + echo " Setting Up WebDAV Mount (HiDrive)" + echo "=========================================" + echo "" + + # Create mount point + echo "Creating mount point..." + sudo mkdir -p /mnt/hidrive + + # Create davfs2 secrets file + echo "Configuring WebDAV credentials..." + sudo mkdir -p /etc/davfs2 + echo "https://webdav.hidrive.ionos.com/ valknar MwRTW4hR.eRbipQ" | sudo tee -a /etc/davfs2/secrets > /dev/null + sudo chmod 600 /etc/davfs2/secrets + + # Configure davfs2 to allow non-root users + sudo sed -i 's/# use_locks 1/use_locks 0/' /etc/davfs2/davfs2.conf 2>/dev/null || true + + # Mount WebDAV + echo "Mounting HiDrive WebDAV..." + if sudo mount -t davfs https://webdav.hidrive.ionos.com/ /mnt/hidrive -o uid=$(id -u),gid=$(id -g); then + echo "✓ HiDrive mounted successfully" + else + echo "⚠ Warning: Mount failed, you may need to mount manually" + fi + + # Create ComfyUI output directory + echo "Creating ComfyUI output directory..." + mkdir -p /mnt/hidrive/users/valknar/Pictures/AI/ComfyUI + + # Create symlink in ComfyUI + echo "Creating symlink in ComfyUI..." + ln -sf /mnt/hidrive/users/valknar/Pictures/AI/ComfyUI /workspace/ComfyUI/output_hidrive + + echo "" + echo "✓ WebDAV setup complete" + echo "" + echo "Mount point: /mnt/hidrive" + echo "ComfyUI output: /mnt/hidrive/users/valknar/Pictures/AI/ComfyUI" + echo "ComfyUI symlink: /workspace/ComfyUI/output_hidrive" + echo "" + echo "To unmount: sudo umount /mnt/hidrive" + echo "To remount: sudo mount -t davfs https://webdav.hidrive.ionos.com/ /mnt/hidrive" + # # Utility Scripts #