Add new path and datapath directory

This commit is contained in:
purple 2023-05-30 19:14:25 +02:00 committed by GitHub
parent accd112f20
commit 839e8a2366
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -183,11 +183,15 @@ if [[ ( $2 == "-i" ) || ( $2 == "-install" ) ]]; then
sed -i "s~^#version#^~$version~g" $f; sed -i "s~^#version#^~$version~g" $f;
sed -i "s~^#author#^~$author~g" $f; sed -i "s~^#author#^~$author~g" $f;
sed -i "s~^#identifier#^~$identifier~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 if [[ $SKIPAZPLACEHOLDERS != true ]]; then
sed -i "s~bpversionreplace~$version~g" $f; sed -i "s~bpversionreplace~$version~g" $f;
sed -i "s~bpauthorreplace~$author~g" $f; sed -i "s~bpauthorreplace~$author~g" $f;
sed -i "s~bpidentifierreplace~$identifier~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; fi;
echo "Done placeholders in '$f'."; echo "Done placeholders in '$f'.";