-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Allow symlinks configuration property #11879
Comments
server/config/config.sample.php Lines 76 to 82 in b88ab75
Does not work for you? |
Do you mean specify absolute path instead of a link in the config? Not really, on Syncloud device you can activate different external disks and we do not want to change configs of all the apps on a device (not only Nextcloud) to point to.a new device dir. It was working fine before v14, that is kind of another reason. |
Would be a great feature when using systemd ProtectHome=yes because nextcloud thinks files inside of it are symlinks. |
I run nextcloud on my small server and after EVERY upgrade I have to manually edit this file. This is just ridiculous. |
This PR is also relevant if you're running php-fpm in chroot environment. |
A similar issue #10904. Probably a workaround for some of you: Create
Nextcloud updater (cli or web) do not read custom configuration files. That's usually not a problem because the configuration is merged. But if you use the above way please make sure to check the datadirectory in |
@kesselb can you open a pr? |
No :) That's something for the config files. |
So, to develop? |
I don't know :) For some reason following symlinks is disabled by default. You might ask team storage about that. This issue seems to be a request to make follow symlinks on/off a configuration option. |
This issue has been automatically marked as stale because it has not had recent activity and seems to be missing some essential information. It will be closed if no further activity occurs. Thank you for your contributions. |
@skjnldsv What info do you need? If I'd only knew the NC core better I'd male a PR myself. It's clear as vodka: Now in
$allowSymliks is hardcoded to False. Instead it SHOULD take value form a configuration file (if it exists there, or false by default. I just cannot imagine what other info is required? |
@dredkin missing info from us ;) |
Use bind mounts instead? #1257 (comment) |
This issue has been automatically marked as stale because it has not had recent activity and seems to be missing some essential information. It will be closed if no further activity occurs. Thank you for your contributions. |
please let me know another way to extend the storage size. |
This is a good and working solution, add to your /etc/fstab something like: This will work in many cases perfectly. Best Regards Edit: swapped arguments |
Provide configuration setting for allowing symlinked data directory.
Currently it is hardcoded to false:
https://github.com/nextcloud/server/blob/master/lib/private/Files/Storage/Local.php#L55
Steps to reproduce
Expected behaviour
I should be able to enable symlinks in a config, not by changing a php file variable.
Actual behaviour
Canot use symlinked data dir.
Server configuration
Operating system: Linux Debian (amd64, arm)
Web server: nginx
Database: postgresql
PHP version: 7.1.21
Nextcloud version: 14.0.0
Updated from an older Nextcloud/ownCloud or fresh install: fresh
Where did you install Nextcloud from: Syncloud
The text was updated successfully, but these errors were encountered: