Initial commit - Phase 3/4
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
23
systemd/dangerous-pi-ssl-gen.service
Normal file
23
systemd/dangerous-pi-ssl-gen.service
Normal file
@@ -0,0 +1,23 @@
|
||||
[Unit]
|
||||
Description=Generate SSL certificate for Dangerous Pi
|
||||
Documentation=https://github.com/yourusername/dangerous-pi
|
||||
Before=dangerous-pi-nginx-config.service nginx.service
|
||||
After=local-fs.target
|
||||
|
||||
# Only run if certificate doesn't exist
|
||||
ConditionPathExists=!/opt/dangerous-pi/ssl/dangerous-pi.crt
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/opt/dangerous-pi/scripts/generate-ssl-cert.sh
|
||||
RemainAfterExit=yes
|
||||
|
||||
# Run as root to set proper permissions
|
||||
User=root
|
||||
Group=root
|
||||
|
||||
# Timeout for certificate generation
|
||||
TimeoutStartSec=30
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user