mirror of
https://github.com/retspen/webvirtcloud
synced 2026-11-08 11:16:47 +00:00
docs(readme): the update's pull works on an installation of the old installer
Installers up to September 2026 ran collectstatic into the tracked static/ (which changed static/drf-yasg and static/rest_framework files) and deleted the tracked install.sh and webvirtcloud.sh. Step 1 put back only static/css and dev/scss, so `git pull` refused with "Your local changes would be overwritten" on every such installation, and the later steps ran on the old code. Step 1 now puts back every tracked file under static/ and the two installer scripts. Checked by installing the upstream release of September 2026 with its own installer on Debian 12, Ubuntu 24.04 and AlmaLinux 10, and following the update steps to this version.
This commit is contained in:
parent
f996b03ed1
commit
402a109633
1 changed files with 3 additions and 1 deletions
|
|
@ -621,10 +621,12 @@ Move the `environment=` values of that config into `/etc/default/webvirtcloud` (
|
|||
{ [ ! -f /etc/default/webvirtcloud ] || cp -p /etc/default/webvirtcloud "$b"/; } &&
|
||||
git rev-parse HEAD > "$b/commit" &&
|
||||
git ls-files -z --others --exclude-standard -- '*/migrations/*.py' | tar --null -T - --remove-files -cf "$b/local-migrations.tar" &&
|
||||
git checkout -- $(git ls-files -m -- static/css dev/scss) &&
|
||||
git checkout -- $(git ls-files -m -- static dev/scss install.sh webvirtcloud.sh) &&
|
||||
git checkout master && git pull
|
||||
```
|
||||
|
||||
Older installers collected static files into the tracked `static/` and deleted the tracked `install.sh` and `webvirtcloud.sh`; the second-to-last line puts those files back, so that `git pull` can update them.
|
||||
|
||||
2. Rebuild `settings.py` from the template (the file keeps its owner and mode), then put back your own values; the `diff` lists them:
|
||||
|
||||
```bash
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue