Skip to content

Commit

Permalink
start_up.sh update
Browse files Browse the repository at this point in the history
  • Loading branch information
AzureFatty committed Mar 8, 2024
1 parent dd100fa commit 6f5e597
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ COPY start_up.sh .
COPY ArchiveRepair /PalRepair/ArchiveRepair

FROM builder AS runner
WORKDIR /PalRepair
VOLUME /data

# Install any needed packages specified in requirements.txt
RUN pip install --no-cache-dir -r requirements.txt

RUN chmod +x ./start_up.sh

ENTRYPOINT [ "./start_up.sh" ]
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Palworld Archive Repair

![Docker Image Version](https://img.shields.io/docker/v/qian/palworld-archive-repair)
[![Image Size](https://img.shields.io/docker/image-size/qian/palworld-archive-repair/latest)](https://hub.docker.com/r/qian/palworld-archive-repair/tags)


## 帕鲁存档修复工具

- ✅ 登录服务器重新创建账号问题
- ⌛️ 登录之后光身子无法使用快捷键


## Docker Compose

```yaml
Expand All @@ -9,13 +19,16 @@ services:
#...
volumes:
- ./data:/palworld/
environment:
- BACKUP_ENABLED=true
- BACKUP_CRON_EXPRESSION=5 */6 * * *

archive-repair:
image: qian/palworld-archive-repair:latest
volumes:
- ./data/Pal/Saved/SaveGames/0/9B6884AE9C8644F0A07D67CA7475E474/Players:/data/Players
- ./data/log:/var/log
environment:
- CRON_REPAIR=*/5 * * * *
- CRON_REPAIR=0 */6 * * *
restart: unless-stopped
```
6 changes: 3 additions & 3 deletions start_up.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/sh
echo "$CRON_REPAIR python /PalRepair/repair.py >> /var/log/repair.log 2>&1" > /etc/crontabs/root

cat /etc/crontabs/root

python /PalRepair/repair.py
crond -f

#keep
/bin/sh
crond -f

0 comments on commit 6f5e597

Please sign in to comment.