Commit 22c082bf authored by John Fox Woland's avatar John Fox Woland

+ Copy plugins configuration

parent 9eb21342
......@@ -66,16 +66,23 @@ done
composer install -n || quit 14
# Copy plugins configuration
cd "$workdir"
find plugins -name config.inc.php | while read cfg; do
cp "$cfg" "$newrc/$cfg" || quit 15
done
# Replace pathes with original ones
grep -rl "$newrc" vendor | while read file; do
sed -i "s#$newrc#/$workdir#g" "$file"
done
cd /
mv "$workdir" "$backupdir" || quit 15
mv "$workdir" "$backupdir" || quit 16
mv "$newrc" "$workdir" || \
{
mv "$backupdir" "$workdir"
quit 16
quit 17
}
rm -rf "$tmpdir"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment