Fix data directory chmod
This commit is contained in:
parent
e27c871038
commit
7e75283801
4 changed files with 18 additions and 1 deletions
13
.ci-make.sh
13
.ci-make.sh
|
@ -129,5 +129,18 @@ case "$1" in
|
|||
curl http://localhost:3000/ | grep -A 4 "Powered by Forgejo"
|
||||
exit $?
|
||||
;;
|
||||
"verify-data-dir-chmod")
|
||||
$DATA_DIR_CHMOD="$(stat -c %a /var/lib/forgejo)"
|
||||
if [ "$DATA_DIR_CHMOD" = "750" ]; then
|
||||
exit 0
|
||||
else
|
||||
exit 100
|
||||
fi
|
||||
;;
|
||||
"force-clean-forgejo")
|
||||
apt install -y psmisc
|
||||
killall forgejo
|
||||
exit $?
|
||||
;;
|
||||
esac
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue