ansible/files/git_host_shim

4 lines
151 B
Bash

#!/usr/bin/env bash
/snap/bin/lxc exec --cwd /var/lib/gitea --env SSH_ORIGINAL_COMMAND="$SSH_ORIGINAL_COMMAND" gitea -- sudo -HE --user gitea $0 "$@"