From 839e8a2366c32132d4930db84c54b4771398ac14 Mon Sep 17 00:00:00 2001 From: purple Date: Tue, 30 May 2023 19:14:25 +0200 Subject: [PATCH] Add new path and datapath directory --- blueprint.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/blueprint.sh b/blueprint.sh index aeeb213..3308dcf 100644 --- a/blueprint.sh +++ b/blueprint.sh @@ -183,11 +183,15 @@ if [[ ( $2 == "-i" ) || ( $2 == "-install" ) ]]; then sed -i "s~^#version#^~$version~g" $f; sed -i "s~^#author#^~$author~g" $f; sed -i "s~^#identifier#^~$identifier~g" $f; + sed -i "s~^#path#^~/var/www/$FOLDER~g" $f; + sed -i "s~^#datapath#^~/var/www/$FOLDER/.blueprint/.storage/extensiondata/$identifier~g" $f; if [[ $SKIPAZPLACEHOLDERS != true ]]; then sed -i "s~bpversionreplace~$version~g" $f; sed -i "s~bpauthorreplace~$author~g" $f; sed -i "s~bpidentifierreplace~$identifier~g" $f; + sed -i "s~bppathreplace~/var/www/$FOLDER~g" $f; + sed -i "s~bpdatapathreplace~/var/www/$FOLDER/.blueprint/.storage/extensiondata/$identifier~g" $f; fi; echo "Done placeholders in '$f'.";