Skip to content

Commit

Permalink
Fix adding service files to deb image
Browse files Browse the repository at this point in the history
  • Loading branch information
johnfan committed Aug 6, 2023
1 parent 8cb8467 commit 1111fdc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ __pycache__/

legion_linux.egg-info/

deb_dist

reverse_engineer

# Prerequisites
Expand Down
7 changes: 5 additions & 2 deletions deploy/build_deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,11 @@ sudo python3 setup.py --command-packages=stdeb.command sdist_dsc
cd deb_dist/legion-linux-1.0.0

##Add to debial install
echo "legion_linux/extra/service/legion-linux.service /etc/systemd/system/" | sudo tee -a debian/install
echo "legion_linux/extra/service/legion-linux.path /lib/systemd/system/" | sudo tee -a debian/install
sudo cp -R ../../../../extra/service/legion-linux.service .
sudo cp -R ../../../../extra/service/legion-linux.path .
echo "legion-linux.service /etc/systemd/system/" | sudo tee -a debian/install
echo "legion-linux.path /lib/systemd/system/" | sudo tee -a debian/install
sudo EDITOR=/bin/true dpkg-source -q --commit . p1

# Build package
sudo dpkg-buildpackage -uc -us
Expand Down

0 comments on commit 1111fdc

Please sign in to comment.