#!/usr/bin/env bash

cd $(dirname "${BASH_SOURCE[0]}")
git fetch && git pull

rm -r ../public
rm -r ../templates

mkdir ../public
cp -r dist/public/* ../public

chown gitea:gitea -R ../public
service gitea restart
