mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-08 05:04:21 +08:00
🎨 Sync 2026-10-28 21:57:13
This commit is contained in:
1 parent
a76462cafd
commit
b21929fceb
27 files changed
+275
-246
No files matched your search
@@ -1503,11 +1503,6 @@ function to_move(app_name,file)
|
||||
}
|
||||
end
|
||||
|
||||
local flag = sys.call('busybox pgrep -af "passwall/.*'.. app_name ..'" >/dev/null')
|
||||
if flag == 0 then
|
||||
sys.call("/etc/init.d/passwall stop")
|
||||
end
|
||||
|
||||
local old_app_size = 0
|
||||
if fs.access(app_path) then
|
||||
old_app_size = get_file_space(app_path)
|
||||
@@ -1523,6 +1518,11 @@ function to_move(app_name,file)
|
||||
end
|
||||
end
|
||||
|
||||
local flag = sys.call('busybox pgrep -af "passwall/.*'.. app_name ..'" >/dev/null')
|
||||
if flag == 0 then
|
||||
sys.call("/etc/init.d/passwall stop")
|
||||
end
|
||||
|
||||
result = exec("/bin/mv", { "-f", bin_path, app_path }, nil, command_timeout) == 0
|
||||
|
||||
remove(rm_tmp)
|
||||
|
||||
Reference in new issue
Block a user