mirror of
https://github.com/linuxserver/docker-nextcloud.git
synced 2026-02-19 23:03:50 +08:00
Merge pull request #146 from linuxserver/occ/update.phar
occ & updater.phar
This commit is contained in:
commit
394134dd14
@ -50,7 +50,15 @@ app_setup_block_enabled: true
|
||||
app_setup_block: |
|
||||
Access the webui at `https://<your-ip>:443`, for more information check out [Nextcloud]({{ project_url }}).
|
||||
|
||||
In order to update nextcloud version, first make sure you are using the latest docker image, and then perform the in app gui update. Docker image update and recreation of container alone won't update nextcloud version.
|
||||
Docker image update and recreation of container alone won't update nextcloud version.
|
||||
|
||||
In order to update nextcloud version, you have two options, firstly make sure you are using the latest docker image,then either
|
||||
|
||||
1. Perform the in app gui update.
|
||||
2. Use the CLI version by running `docker exec -it nextcloud updater.phar`
|
||||
(Both of these are described [here](https://docs.nextcloud.com/server/latest/admin_manual/maintenance/update.html))
|
||||
|
||||
Note: Both `occ` and `updater.phar` can be run without prepending with `sudo -u abc php` or `sudo -u www-data php`
|
||||
|
||||
If you are not customizing our default nginx configuration you will need to remove the file:
|
||||
```
|
||||
@ -58,8 +66,11 @@ app_setup_block: |
|
||||
```
|
||||
Then restart the container to replace it with the latest one.
|
||||
|
||||
|
||||
|
||||
# changelog
|
||||
changelogs:
|
||||
- { date: "31.05.20:", desc: "Add aliases for occ and updater.phar" }
|
||||
- { date: "31.03.20:", desc: "Allow crontab to be user customized, fix logrotate." }
|
||||
- { date: "17.01.20:", desc: "Updated php.ini defaults and site config, including an optional HSTS directive (existing users should delete `/config/nginx/site-confs/default` and restart the container)." }
|
||||
- { date: "19.12.19:", desc: "Rebasing to alpine 3.11." }
|
||||
|
||||
15
root/etc/cont-init.d/70-aliases
Normal file
15
root/etc/cont-init.d/70-aliases
Normal file
@ -0,0 +1,15 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
## Set alias for occ and make executable
|
||||
[[ ! -f /usr/bin/occ ]] && \
|
||||
echo -e '#!/bin/bash\nsudo -u abc php7 /config/www/nextcloud/occ' > /usr/bin/occ
|
||||
|
||||
[[ ! -x /usr/bin/occ ]] && \
|
||||
chmod +x /usr/bin/occ
|
||||
|
||||
## Set alias for updater.phar and make executable
|
||||
[[ ! -f /usr/bin/updater.phar ]] && \
|
||||
echo -e '#!/bin/bash\nsudo -u abc php7 /config/www/nextcloud/updater/updater.phar' > /usr/bin/updater.phar
|
||||
|
||||
[[ ! -x /usr/bin/updater.phar ]] && \
|
||||
chmod +x /usr/bin/updater.phar
|
||||
Loading…
x
Reference in New Issue
Block a user