Merge claude/2
This commit is contained in:
commit
936d533fa1
@ -3,7 +3,10 @@
|
|||||||
dockerComposeDownAllApps()
|
dockerComposeDownAllApps()
|
||||||
{
|
{
|
||||||
local type="$1"
|
local type="$1"
|
||||||
local subdirectories=($(find "$containers_dir" -mindepth 1 -maxdepth 1 -type d))
|
# runFileOp: containers/ is owned by the container user (dockerinstall, 751)
|
||||||
|
# under rootless and isn't list-readable by the manager — enumerate as the
|
||||||
|
# owner or this silently finds nothing and no apps get brought down.
|
||||||
|
local subdirectories=($(runFileOp find "$containers_dir" -mindepth 1 -maxdepth 1 -type d))
|
||||||
|
|
||||||
for dir in "${subdirectories[@]}"; do
|
for dir in "${subdirectories[@]}"; do
|
||||||
local app_name=$(basename "$dir")
|
local app_name=$(basename "$dir")
|
||||||
|
|||||||
@ -3,7 +3,10 @@
|
|||||||
dockerComposeUpAllApps()
|
dockerComposeUpAllApps()
|
||||||
{
|
{
|
||||||
local type="$1"
|
local type="$1"
|
||||||
local subdirectories=($(find "$containers_dir" -mindepth 1 -maxdepth 1 -type d))
|
# runFileOp: containers/ is owned by the container user (dockerinstall, 751)
|
||||||
|
# under rootless and isn't list-readable by the manager — enumerate as the
|
||||||
|
# owner or this silently finds nothing and no apps come up.
|
||||||
|
local subdirectories=($(runFileOp find "$containers_dir" -mindepth 1 -maxdepth 1 -type d))
|
||||||
|
|
||||||
for dir in "${subdirectories[@]}"; do
|
for dir in "${subdirectories[@]}"; do
|
||||||
local app_name=$(basename "$dir")
|
local app_name=$(basename "$dir")
|
||||||
|
|||||||
@ -14,7 +14,7 @@ webuiGenerateAppLogs()
|
|||||||
|
|
||||||
# Fast approach: Scan containers directory directly
|
# Fast approach: Scan containers directory directly
|
||||||
if [ -d "$containers_dir" ]; then
|
if [ -d "$containers_dir" ]; then
|
||||||
find "$containers_dir" -maxdepth 1 -type d -not -path "$containers_dir" | while read -r dir; do
|
runFileOp find "$containers_dir" -maxdepth 1 -type d -not -path "$containers_dir" | while read -r dir; do
|
||||||
local result=$(basename "$dir")
|
local result=$(basename "$dir")
|
||||||
local app_name="$result"
|
local app_name="$result"
|
||||||
total_apps=$((total_apps + 1))
|
total_apps=$((total_apps + 1))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user