rename package
All checks were successful
Build and Publish Debian Package / build (push) Successful in 39s
All checks were successful
Build and Publish Debian Package / build (push) Successful in 39s
This commit is contained in:
parent
063ea9b64b
commit
0a7a3f70eb
3 changed files with 4 additions and 3 deletions
|
@ -46,8 +46,8 @@ jobs:
|
|||
# Create temporary packaging directory
|
||||
mkdir -p package/usr/local/bin
|
||||
mkdir -p package/etc/systemd/system
|
||||
# Copy main.py as the executable and rename if needed
|
||||
cp src/main.py package/usr/local/bin/magicfw
|
||||
# Copy magicfw.py as the executable and rename if needed
|
||||
cp src/magicfw.py package/usr/local/bin/magicfw
|
||||
chmod +x package/usr/local/bin/magicfw
|
||||
# Copy the systemd service file
|
||||
cp systemd/magicfw.service package/etc/systemd/system/
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#!/usr/bin/env python
|
||||
import os
|
||||
import json
|
||||
import logging
|
|
@ -10,7 +10,7 @@ StartLimitBurst=10
|
|||
Type=exec
|
||||
Restart=on-failure
|
||||
RestartSec=5s
|
||||
ExecStart=/usr/bin/python3 /opt/docker_magicfw.py
|
||||
ExecStart=/usr/local/bin/magicfw
|
||||
|
||||
# Environment variables (customize as needed)
|
||||
Environment=LOG_LEVEL=INFO
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue