feat: add WebDAV integration for HiDrive storage
Added setup/webdav script to arty.yml: - Installs davfs2 package - Configures HiDrive WebDAV credentials - Mounts https://webdav.hidrive.ionos.com/ to /mnt/hidrive - Creates ComfyUI output directory: /mnt/hidrive/users/valknar/Pictures/AI/ComfyUI - Creates symlink: /workspace/ComfyUI/output_hidrive Usage: arty run setup/webdav This allows ComfyUI outputs to be saved directly to HiDrive cloud storage. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
48
arty.yml
48
arty.yml
@@ -138,7 +138,8 @@ scripts:
|
|||||||
vim \
|
vim \
|
||||||
htop \
|
htop \
|
||||||
tmux \
|
tmux \
|
||||||
net-tools
|
net-tools \
|
||||||
|
davfs2
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "✓ System packages installed successfully"
|
echo "✓ System packages installed successfully"
|
||||||
@@ -331,6 +332,51 @@ scripts:
|
|||||||
echo "To manage: supervisorctl status"
|
echo "To manage: supervisorctl status"
|
||||||
echo "Web UI: http://localhost:9001 (admin/runpod2024)"
|
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
|
# Utility Scripts
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user