Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix rm path for update package #1625

Open
wants to merge 5 commits into
base: devel
Choose a base branch
from
Open

Conversation

MB-Finski
Copy link
Contributor

@MB-Finski MB-Finski commented Oct 9, 2022

Fixes a bening bug where the nextcloud update package won't be removed after unpacking when the code is run inside a docker container.

Also, for readability/clarity, remove an unnecessary "/var/www" from a cp command.

Edit: As a side note, the ncp-update-nc script uses absolute and relative path references variably. Absolute references using either $BASEDIR or $DATADIR would perhaps make the script more robust and future proof. Would such a commit/pull request make sense?

Signed-off-by: MB-Finski 64466176+MB-Finski@users.noreply.github.com

MB-Finski and others added 5 commits October 2, 2022 22:09
Improve docker compatibility: Change the backup directory for ./nextcloud/data to reside within the host file system (basedir) so as to avoid moving the data folder back and forth between the docker container and the host file system. In situations where the nextcloud data takes up more than the free available space on the host system, this may lead to loosing some or all of the data.

Signed-off-by: MB-Finski <64466176+MB-Finski@users.noreply.github.com>
Improves docker compatibility. Placing the backup file in /var/www/ will cause a failure in rolling back the update on containerized setups ("Can only restore from ext/btrfs/zfs filesystems"). The host filesystem is most likely compatible so using $BASEDIR as the backup location *should* solve this issue for most users.

Signed-off-by: MB-Finski <64466176+MB-Finski@users.noreply.github.com>
Change backup directory for docker compatibility
Fixes a bening bug where the nextcloud update package won't be removed after unpacking when the code is run inside a docker container.

Also, for readability/clarity, remove an unnecessary "/var/www" from a cp command. 

Signed-off-by: MB-Finski <64466176+MB-Finski@users.noreply.github.com>
@theCalcaholic theCalcaholic force-pushed the devel branch 30 times, most recently from a5cf782 to 8c1dc9f Compare May 6, 2024 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants