Create wrapper script for tootctl that shells out to docker

This commit is contained in:
waffles
2023-01-26 19:42:47 -08:00
parent 00012ff6c7
commit 49cb7aadbe
2 changed files with 18 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
#!/bin/bash
# Wrap around a docker command to invoke `tootctl`
docker exec -it $(docker ps -f name=web -q | head -n1) bin/tootctl $*
+14
View File
@@ -39,3 +39,17 @@
tags:
- install
when: pull_images.changed
- name: Install tootctl wrapper script
copy:
src: tootctl
dest: /usr/local/bin/tootctl
tags:
- install
- name: Set permissions on tootctl
file:
path: /usr/local/bin/tootctl
mode: '0755'
tags:
- install