diff options
| author | alex <alex@pdp7.net> | 2024-03-23 20:04:24 +0100 |
|---|---|---|
| committer | alex <alex@pdp7.net> | 2024-03-23 20:04:24 +0100 |
| commit | e3d4b64d7e255657ac8bfa9690ba0cfa8a5a9115 (patch) | |
| tree | f3d76398fcec73e87a6b473fb361899c854a9141 /scripts | |
| parent | 20cc27accf0a3f812d3b8f3fad88b02138a348b3 (diff) | |
Add setup_ubpkg
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' |
