mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-06 20:14:10 +08:00
🌴 Sync 2026-03-05 23:51:42
This commit is contained in:
1 parent
0d155c70be
commit
32600acc60
14258 files changed
+3954570
No files matched your search
@@ -0,0 +1,4 @@
|
||||
config nextcloud
|
||||
option 'port' '8082'
|
||||
option 'config_path' ''
|
||||
option 'image_name' 'nextcloud'
|
||||
@@ -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