1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/limesurvey_ynh.git synced 2024-09-03 19:36:32 +02:00

[fix] Missing permission on pip install

This commit is contained in:
ljf (zamentur) 2017-02-02 11:14:25 +01:00 committed by GitHub
parent 7d723ee446
commit 3a1a6b5599

View file

@ -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"
}