Commit bec06532 authored by JosephK's avatar JosephK
Browse files

Wiki import

parent bb7b9de0
WikiAPI=$(cat src/data/main.yml | grep -Po 'api: \K.*');
WikiBase=$(cat src/data/main.yml | grep -Po 'base: \K.*');
WikiGit=$(echo $WikiBase | rev | cut -d '/' -f4- | rev).wiki.git;
# Import wiki.json
wget "$WikiAPI" -O public/wiki.json
# Import uploads
if [ ! -d public/wiki ]; then
mkdir ./public/wiki
git clone $WikiGit public/wiki/tmp/
if [ -d public/wiki/tmp/uploads ]; then
mv public/wiki/tmp/uploads/* public/wiki/
rm -rf public/wiki/tmp/
\ No newline at end of file
Supports Markdown
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