Add config.json handling for Docker setup and update script
This commit is contained in:
@@ -203,6 +203,7 @@ jobs:
|
|||||||
expose:
|
expose:
|
||||||
- "8000"
|
- "8000"
|
||||||
volumes:
|
volumes:
|
||||||
|
- ./config.json:/app/config.json:ro
|
||||||
- app_uploads:/app/Web/uploads
|
- app_uploads:/app/Web/uploads
|
||||||
- app_thumbnails:/app/Web/thumbnails
|
- app_thumbnails:/app/Web/thumbnails
|
||||||
- app_previews:/app/Web/previews
|
- app_previews:/app/Web/previews
|
||||||
@@ -225,6 +226,7 @@ jobs:
|
|||||||
cp stop.sh release-bundle/stop.sh
|
cp stop.sh release-bundle/stop.sh
|
||||||
cp restart.sh release-bundle/restart.sh
|
cp restart.sh release-bundle/restart.sh
|
||||||
cp backup.sh release-bundle/backup.sh
|
cp backup.sh release-bundle/backup.sh
|
||||||
|
cp config.json release-bundle/config.json
|
||||||
cp update.sh release-bundle/update.sh
|
cp update.sh release-bundle/update.sh
|
||||||
cp init-admin.sh release-bundle/init-admin.sh
|
cp init-admin.sh release-bundle/init-admin.sh
|
||||||
|
|
||||||
|
|||||||
@@ -42,6 +42,7 @@ services:
|
|||||||
expose:
|
expose:
|
||||||
- "8000"
|
- "8000"
|
||||||
volumes:
|
volumes:
|
||||||
|
- ./config.json:/app/config.json:ro
|
||||||
- ./Web:/app/Web
|
- ./Web:/app/Web
|
||||||
- app_uploads:/app/Web/uploads
|
- app_uploads:/app/Web/uploads
|
||||||
- app_thumbnails:/app/Web/thumbnails
|
- app_thumbnails:/app/Web/thumbnails
|
||||||
|
|||||||
@@ -325,6 +325,11 @@ download_and_extract_bundle() {
|
|||||||
cp -f "$tmp_dir/update.sh" "$PROJECT_DIR/update.sh"
|
cp -f "$tmp_dir/update.sh" "$PROJECT_DIR/update.sh"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ ! -f "$PROJECT_DIR/config.json" ] && [ -f "$tmp_dir/config.json" ]; then
|
||||||
|
cp -f "$tmp_dir/config.json" "$PROJECT_DIR/config.json"
|
||||||
|
log_message "Installed default config.json from release bundle"
|
||||||
|
fi
|
||||||
|
|
||||||
chmod +x "$PROJECT_DIR/start.sh" "$PROJECT_DIR/stop.sh" "$PROJECT_DIR/restart.sh" "$PROJECT_DIR/update.sh" "$PROJECT_DIR/backup.sh"
|
chmod +x "$PROJECT_DIR/start.sh" "$PROJECT_DIR/stop.sh" "$PROJECT_DIR/restart.sh" "$PROJECT_DIR/update.sh" "$PROJECT_DIR/backup.sh"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user