Update unittests for script init_directory_structure.sh in rootless mode Some checks failed check-and-test / check-and-test (pull_request) Failing after 30s
Some checks failed
check-and-test / check-and-test (pull_request) Failing after 30s
This commit is contained in:
@@ -29,14 +29,13 @@ tests: | ||||
| ||||
set -euo pipefail | ||||
| ||||
set -x | ||||
mkdir -p /data/git/.ssh | ||||
chmod -R 700 /data/git/.ssh | ||||
[ ! -d /data/gitea/conf ] && mkdir -p /data/gitea/conf | ||||
mkdir -pv /data/git/.ssh | ||||
chmod -Rv 700 /data/git/.ssh | ||||
[ ! -d /data/gitea/conf ] && mkdir -pv /data/gitea/conf | ||||
| ||||
# prepare temp directory structure | ||||
mkdir -p "${GITEA_TEMP}" | ||||
chmod ug+rwx "${GITEA_TEMP}" | ||||
mkdir -pv "${GITEA_TEMP}" | ||||
chmod -v ug+rwx "${GITEA_TEMP}" | ||||
- it: adds gpg script block for enabled signing | ||||
set: | ||||
signing.enabled: true | ||||
@@ -52,19 +51,18 @@ tests: | ||||
| ||||
set -euo pipefail | ||||
| ||||
set -x | ||||
mkdir -p /data/git/.ssh | ||||
chmod -R 700 /data/git/.ssh | ||||
[ ! -d /data/gitea/conf ] && mkdir -p /data/gitea/conf | ||||
mkdir -pv /data/git/.ssh | ||||
chmod -Rv 700 /data/git/.ssh | ||||
[ ! -d /data/gitea/conf ] && mkdir -pv /data/gitea/conf | ||||
| ||||
# prepare temp directory structure | ||||
mkdir -p "${GITEA_TEMP}" | ||||
chmod ug+rwx "${GITEA_TEMP}" | ||||
mkdir -pv "${GITEA_TEMP}" | ||||
chmod -v ug+rwx "${GITEA_TEMP}" | ||||
| ||||
if [ ! -d "${GNUPGHOME}" ]; then | ||||
mkdir -p "${GNUPGHOME}" | ||||
chmod 700 "${GNUPGHOME}" | ||||
chown 1000:1000 "${GNUPGHOME}" | ||||
mkdir -pv "${GNUPGHOME}" | ||||
chmod -v 700 "${GNUPGHOME}" | ||||
chown -v 1000:1000 "${GNUPGHOME}" | ||||
fi | ||||
- it: it does not chown /data even when image.fullOverride is set | ||||
template: templates/gitea/init.yaml | ||||
@@ -78,11 +76,10 @@ tests: | ||||
| ||||
set -euo pipefail | ||||
| ||||
set -x | ||||
mkdir -p /data/git/.ssh | ||||
chmod -R 700 /data/git/.ssh | ||||
[ ! -d /data/gitea/conf ] && mkdir -p /data/gitea/conf | ||||
mkdir -pv /data/git/.ssh | ||||
chmod -Rv 700 /data/git/.ssh | ||||
[ ! -d /data/gitea/conf ] && mkdir -pv /data/gitea/conf | ||||
| ||||
# prepare temp directory structure | ||||
mkdir -p "${GITEA_TEMP}" | ||||
chmod ug+rwx "${GITEA_TEMP}" | ||||
mkdir -pv "${GITEA_TEMP}" | ||||
chmod -v ug+rwx "${GITEA_TEMP}" | ||||
| ||||
Reference in New Issue
Block a user