diff options
| author | crystal <crystal@noreply.codeberg.org> | 2023-11-25 17:12:14 -0700 |
|---|---|---|
| committer | crystal <crystal@noreply.codeberg.org> | 2023-11-25 17:12:14 -0700 |
| commit | 7e75283801bced3535dd5f1e3c7027f872433364 (patch) | |
| tree | 1df847976ba7a8e2c969dfff6a6dec109dba8884 /.ci-make.sh | |
| parent | e27c8710387cf48e1e77eafcdc02b3b9a3c526c8 (diff) | |
Fix data directory chmod
Diffstat (limited to '.ci-make.sh')
| -rwxr-xr-x | .ci-make.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/.ci-make.sh b/.ci-make.sh index 672c2a7..1c35250 100755 --- a/.ci-make.sh +++ b/.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 |
