rename package
All checks were successful
Build and Publish Debian Package / build (push) Successful in 39s

This commit is contained in:
Marco Realacci 2025-03-15 02:54:49 +01:00
parent 063ea9b64b
commit 0a7a3f70eb
3 changed files with 4 additions and 3 deletions

View file

@ -46,8 +46,8 @@ jobs:
# Create temporary packaging directory # Create temporary packaging directory
mkdir -p package/usr/local/bin mkdir -p package/usr/local/bin
mkdir -p package/etc/systemd/system mkdir -p package/etc/systemd/system
# Copy main.py as the executable and rename if needed # Copy magicfw.py as the executable and rename if needed
cp src/main.py package/usr/local/bin/magicfw cp src/magicfw.py package/usr/local/bin/magicfw
chmod +x package/usr/local/bin/magicfw chmod +x package/usr/local/bin/magicfw
# Copy the systemd service file # Copy the systemd service file
cp systemd/magicfw.service package/etc/systemd/system/ cp systemd/magicfw.service package/etc/systemd/system/

View file

@ -1,3 +1,4 @@
#!/usr/bin/env python
import os import os
import json import json
import logging import logging

View file

@ -10,7 +10,7 @@ StartLimitBurst=10
Type=exec Type=exec
Restart=on-failure Restart=on-failure
RestartSec=5s RestartSec=5s
ExecStart=/usr/bin/python3 /opt/docker_magicfw.py ExecStart=/usr/local/bin/magicfw
# Environment variables (customize as needed) # Environment variables (customize as needed)
Environment=LOG_LEVEL=INFO Environment=LOG_LEVEL=INFO