diff options
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/p7s/ubpkg.py | 11 | ||||
| -rw-r--r-- | scripts/pyproject.toml | 1 |
2 files changed, 12 insertions, 0 deletions
diff --git a/scripts/p7s/ubpkg.py b/scripts/p7s/ubpkg.py new file mode 100644 index 00000000..72495f41 --- /dev/null +++ b/scripts/p7s/ubpkg.py @@ -0,0 +1,11 @@ +import os +import pathlib +import shutil + +import httpx + + +def setup_ubpkg(): + ubpkg = pathlib.Path.home() / ".local" / "bin" / "ubpkg" + ubpkg.write_bytes(httpx.get("https://github.com/alexpdp7/ubpkg/releases/latest/download/ubpkg-linux", follow_redirects=True).content) + os.chmod(ubpkg, 0o700) diff --git a/scripts/pyproject.toml b/scripts/pyproject.toml index 7f4b6403..225ab824 100644 --- a/scripts/pyproject.toml +++ b/scripts/pyproject.toml @@ -25,4 +25,5 @@ nextcloud_setup = 'p7s.nextcloud:setup_nextcloud' soju_setup = 'p7s.soju:setup_soju' bitlbee_setup = 'p7s.bitlbee:setup_bitlbee' setup_emacs = 'p7s.emacs:setup_emacs' +setup_ubpkg = 'p7s.ubpkg:setup_ubpkg' update_zfs = 'p7s.zfs:update_zfs' |
