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

Update _common.sh

This commit is contained in:
ericgaspar 2021-09-12 16:41:42 +02:00
parent bab746e74f
commit 68f4972a43
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -14,6 +14,14 @@ pkg_dependencies="php${YNH_PHP_VERSION}-cli php${YNH_PHP_VERSION}-mysql php${YNH
# SPECIFIC HELPERS # SPECIFIC HELPERS
#================================================= #=================================================
ynh_configure () {
local TEMPLATE=$1
local DEST=$2
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"
}
#================================================= #=================================================
# COMMON HELPERS # COMMON HELPERS
#================================================= #=================================================