fix and finally ran

This commit is contained in:
iceBear67
2026-06-16 16:42:28 +08:00
parent 71f46fb430
commit bd3df67542
13 changed files with 859 additions and 77 deletions

View File

@@ -4,14 +4,12 @@
set -euo pipefail
mkdir -p /users && chown keeper /users && chmod 644 /users
su keeper
init_repo(){
git clone -b _REVISION_ _REPO_ /users
su - keeper 'git clone -b _REVISION_ _REPO_ /users'
}
if [[ ! -d /users/.git ]]; then
init_repo
elif [[ -d /users && cd /users && ! git pull origin _REVISION_ ]]; then
elif [[ -d /users && cd /users && ! su - keeper 'git pull origin _REVISION_' ]]; then
init_repo
fi