mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 17:20:30 +08:00
玩客云首次启动生成随机 mac 地址 #113 自签 SSL 证书修改为首次启动时生成,增强安全性 优化整合包镜像构建脚本和 Dockerfile 修复 docker 启动脚本错误
18 lines
452 B
Desktop File
18 lines
452 B
Desktop File
[Unit]
|
|
Description=Generate Random MAC Address for OneCloud (One-time)
|
|
Documentation=https://github.com/your-repo/One-KVM
|
|
Before=systemd-networkd.service
|
|
Before=network-pre.target
|
|
Wants=network-pre.target
|
|
After=local-fs.target
|
|
ConditionPathExists=!/var/lib/kvmd/.mac-generated
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
ExecStart=/usr/local/bin/generate-random-mac.sh
|
|
RemainAfterExit=yes
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target |