14 lines
214 B
Bash
Executable File
14 lines
214 B
Bash
Executable File
#!/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
|