mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-04 10:33:56 +08:00
🌴 Sync 2026-03-05 23:51:42
This commit is contained in:
1 parent
97c049ed0a
commit
0acff03804
14253 files changed
+3893239
No files matched your search
@@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
|
||||
config_dir=`uci -q get nextcloud.@nextcloud[0].config_path`
|
||||
|
||||
data_dir=`docker inspect --format '{{.Mounts}}' nextcloud | grep -Eom1 '[^ ]+/_data /var/www/html local true ' | cut -d' ' -f1`
|
||||
|
||||
if [ -n "$data_dir" -a "$data_dir" != "$config_dir" ]; then
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
set nextcloud.@nextcloud[0].config_path="$data_dir"
|
||||
commit nextcloud
|
||||
EOF
|
||||
fi
|
||||
|
||||
exit 0
|
||||
Reference in new issue
Block a user