Pwnagotchi: auto-update should update launchers and service files too

Created on 30 Oct 2019  路  8Comments  路  Source: evilsocket/pwnagotchi

Right now .service and launcher files are only updated if the full .img is reflashed as they're part of the builder. They should be migrated as assets of the python codebase that get installed from the setup.py during the pip3 install . update procedure.

bug

Most helpful comment

Same probably goes for MOTD since it has a version number and links that could eventually change?

I would keep that in ansible and update the file in the auto-update plugin.

All 8 comments

@caquino setup.py doesn't seem to be executed while using pip3 install ., any idea what'd be a nice way to have those files updated from the auto-update plugin?

We could use the file-provisioner in the packer-file to copy the service-file and launcher files to the image. This way we would have them as real files in the repo and can easily include them into the auto-update process.

https://www.packer.io/docs/provisioners/file.html

@dadav that'd be great, any ref?

Tell me if you need help with that ;)

i'm checking, thanks

Same probably goes for MOTD since it has a version number and links that could eventually change?

Same probably goes for MOTD since it has a version number and links that could eventually change?

I would keep that in ansible and update the file in the auto-update plugin.

@dadav i just pushed the change be414e57b308565b47a40a76d92fbb1a4b5e426c but i'd need another couple of eyes to double check / review the code

Was this page helpful?
0 / 5 - 0 ratings

Related issues

evilsocket picture evilsocket  路  6Comments

Shadyman picture Shadyman  路  7Comments

miotislucifugis picture miotislucifugis  路  6Comments

drego85 picture drego85  路  3Comments

jeffedstrom picture jeffedstrom  路  4Comments