From 3a1a6b55999e5e8dbcbd35de0ad90c31deab73a4 Mon Sep 17 00:00:00 2001 From: "ljf (zamentur)" Date: Thu, 2 Feb 2017 11:14:25 +0100 Subject: [PATCH] [fix] Missing permission on pip install --- scripts/_common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index ebadf0a..775fe6f 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -241,7 +241,7 @@ ynh_system_user_delete () { ynh_configure () { local TEMPLATE=$1 local DEST=$2 - type j2 2>/dev/null || pip install j2cli + type j2 2>/dev/null || sudo pip install j2cli j2 "${PKG_DIR}/conf/$TEMPLATE.j2" > "${PKG_DIR}/conf/$TEMPLATE" sudo cp "${PKG_DIR}/conf/$TEMPLATE" "$DEST" }