Added restart
This commit is contained in:
parent
a1499ce26d
commit
c87904b996
@ -1,4 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
if [ "$GITEA_CUSTOM" == "" ]; then
|
if [ "$GITEA_CUSTOM" == "" ]; then
|
||||||
GITEA_CUSTOM="/var/lib/gitea/custom"
|
GITEA_CUSTOM="/var/lib/gitea/custom"
|
||||||
fi
|
fi
|
||||||
@ -14,4 +17,6 @@ case "$confirm" in
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
mkdir -p "$GITEA_CUSTOM"
|
mkdir -p "$GITEA_CUSTOM"
|
||||||
cp -r -v -f ./custom/* "$GITEA_CUSTOM/"
|
cp -r -v -f ./custom/* "$GITEA_CUSTOM/"
|
||||||
|
|
||||||
|
systemctl restart gitea
|
Loading…
Reference in New Issue
Block a user