Update README.md
This commit is contained in:
@@ -1,19 +1,14 @@
|
|||||||
# Creating a test Nextcloud virtual machine
|
# Scarif - A personal server for evil plans
|
||||||
Taking this task one step at a time I started by creating a docker nextcloud server on a virtual machine following [this](https://blog.ssdnodes.com/blog/installing-nextcloud-docker/) tutorial.
|
|
||||||
|
|
||||||
## Upgrading
|
## Upgrading
|
||||||
> First of all **SWITCH ROUTER DNS SERVER**
|
> First of all **SWITCH ROUTER DNS SERVER**
|
||||||
|
|
||||||
### Linux
|
### Linux
|
||||||
> This might not be necessary anymore. I think I fixed it by linking to the github repository instead of the AUR.
|
1. Check the version of linux required by `zfs-linux` in the AUR [https://aur.archlinux.org/packages/zfs-linux](https://aur.archlinux.org/packages/zfs-linux)
|
||||||
|
2. Manually install that version of linux and linux-headers:
|
||||||
1. Remove zfs-linux `yay -Rns zfs-linux-lts`
|
1. pacman -UDd https://archive.archlinux.org/packages/l/linux/linux-{version}.arch1-1-x86_64.pkg.tar.zst
|
||||||
2. Upgrade all packages `yay`
|
2. pacman -UDd https://archive.archlinux.org/packages/l/linux-headers/linux-headers-{version}.arch1-1-x86_64.pkg.tar.zst
|
||||||
3. Clone the zfs-linux repository `git clone https://aur.archlinux.org/zfs-linux-lts.git`
|
3. Upgrade all other packages `yay`
|
||||||
4. Update the dependencies to match Linux version inside `PKGBUILD`
|
|
||||||
5. Install zfs-linux `cd zfs-linux-lts` `makepkg -si`
|
|
||||||
|
|
||||||
> You might need to make sure you have the correct `zfs-utils` installed.
|
|
||||||
|
|
||||||
### Docker Containers
|
### Docker Containers
|
||||||
Nextcloud is the annoying one here. Unless you want to take the risk, you need to upgrade to each major version, incrementally.
|
Nextcloud is the annoying one here. Unless you want to take the risk, you need to upgrade to each major version, incrementally.
|
||||||
@@ -22,12 +17,14 @@ You can do this by changing the base image in the `nextcloud/DockerFile` file to
|
|||||||
Once you have done that you can upgrade all the images:
|
Once you have done that you can upgrade all the images:
|
||||||
```
|
```
|
||||||
sudo docker-compose pull # to upgrade the images
|
sudo docker-compose pull # to upgrade the images
|
||||||
|
# If Nextcloud has a new major version then edit `nextcloud/Dockerfile` to use the new version and run this to pull that specific version
|
||||||
sudo docker-compose pull nextcloud:{version}-fpm-alpine # because docker-compose can't tell that it is used by the nextcloud image
|
sudo docker-compose pull nextcloud:{version}-fpm-alpine # because docker-compose can't tell that it is used by the nextcloud image
|
||||||
sudo docker-compose down # to destroy all the existing containers
|
sudo docker-compose down # to destroy all the existing containers
|
||||||
sudo docker-compose up --force-recreate --build -d # to rebuild all the containers with the newest images
|
sudo docker-compose up --force-recreate --build -d # to rebuild all the containers with the newest images
|
||||||
|
# Only run the following two commands if the nextcloud version was increased
|
||||||
sudo docker-compose exec -u 1000 -it nextcloud php /var/www/html/occ upgrade -vvv # to run the upgrade script
|
sudo docker-compose exec -u 1000 -it nextcloud php /var/www/html/occ upgrade -vvv # to run the upgrade script
|
||||||
sudo docker-compose exec -u 1000 -it nextcloud php /var/www/html/occ maintenance:mode --off # to turn the site back on
|
sudo docker-compose exec -u 1000 -it nextcloud php /var/www/html/occ maintenance:mode --off # to turn the site back on
|
||||||
sudo certbot certonly -d scarif.space,www.scarif.space,tower.scarif.space,labs.scarif.space,comms.scarif.space,office.scarif.space,rec.scarif.space,radio.scarif.space,intel.scarif.space --force-renewal
|
sudo certbot certonly -d scarif.space,www.scarif.space,tower.scarif.space,labs.scarif.space,comms.scarif.space,office.scarif.space,rec.scarif.space,radio.scarif.space,droid.scarif.space,holocron.scarif.space --force-renewal
|
||||||
sudo cp /etc/letsencrypt/live/scarif.space/privkey.pem /opt/ssl/scarif.space.key
|
sudo cp /etc/letsencrypt/live/scarif.space/privkey.pem /opt/ssl/scarif.space.key
|
||||||
sudo cp /etc/letsencrypt/live/scarif.space/fullchain.pem /opt/ssl/scarif.space.crt
|
sudo cp /etc/letsencrypt/live/scarif.space/fullchain.pem /opt/ssl/scarif.space.crt
|
||||||
sudo docker-compose restart nginx
|
sudo docker-compose restart nginx
|
||||||
|
|||||||
Reference in New Issue
Block a user