From 29d6709edea91ea598f95c01b71944c2f9c348af Mon Sep 17 00:00:00 2001 From: Pig Monkey Date: Sun, 3 Apr 2016 15:41:24 -0700 Subject: [PATCH] use symlink invocation for zathura firejail Existing users will need to remove the old script first. # rm /usr/local/bin/zathura --- roles/office/files/zathura.sh | 11 ----------- roles/office/tasks/main.yml | 4 +++- 2 files changed, 3 insertions(+), 12 deletions(-) delete mode 100644 roles/office/files/zathura.sh diff --git a/roles/office/files/zathura.sh b/roles/office/files/zathura.sh deleted file mode 100644 index b6c0cf8..0000000 --- a/roles/office/files/zathura.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh - -FIREJAIL="" - -hash firejail 2> /dev/null - -if [ $? -eq 0 ]; then - FIREJAIL=firejail -fi - -$FIREJAIL /usr/bin/zathura \"$@\" diff --git a/roles/office/tasks/main.yml b/roles/office/tasks/main.yml index afb2c13..867e2d1 100644 --- a/roles/office/tasks/main.yml +++ b/roles/office/tasks/main.yml @@ -23,7 +23,9 @@ - zathura-ps - name: Jail Zathura - copy: src=zathura.sh dest=/usr/local/bin/zathura mode=0755 + file: src=/usr/bin/firejail + dest=/usr/local/bin/zathura + state=link tags: - firejail