Atualização automática: 2026-05-23 23:20:29

This commit is contained in:
Hermes
2026-05-23 23:20:29 +00:00
parent 1c85ce772b
commit 5f956cdac9
2 changed files with 6 additions and 6 deletions
+5 -5
View File
@@ -308,8 +308,8 @@ app.post('/api/wget-clone', async (req, res) => {
const { exec } = require('child_process');
const containerId = require('os').hostname();
const cloneDir = directory.split('/').pop();
const hostDir = req.body.outputDir || '/root/Desktop/Clonados';
exec(`mkdir -p ${hostDir} && cp -r ${directory} ${hostDir}/ 2>/dev/null || docker cp ${containerId}:${directory} ${hostDir}/ 2>/dev/null`, (err) => {
const hostDir = req.body.outputDir || '/root/Desktop/CLONE_SITE';
exec(`mkdir -p "${hostDir}" && cp -r "${directory}" "${hostDir}/" 2>/dev/null || docker cp ${containerId}:"${directory}" "${hostDir}/" 2>/dev/null`, (err) => {
if (err) console.log('⚠️ Sync to host failed:', err.message);
else console.log('✅ Clone synced to host Desktop:', cloneDir);
});
@@ -388,8 +388,8 @@ app.post('/api/smart-clone', (req, res) => {
const { exec } = require('child_process');
const containerId = require('os').hostname();
const cloneDir = directory.split('/').pop();
const hostDir = req.body.outputDir || '/root/Desktop/Clonados';
exec(`mkdir -p ${hostDir} && cp -r ${directory} ${hostDir}/ 2>/dev/null || docker cp ${containerId}:${directory} ${hostDir}/ 2>/dev/null`, (err) => {
const hostDir = req.body.outputDir || '/root/Desktop/CLONE_SITE';
exec(`mkdir -p "${hostDir}" && cp -r "${directory}" "${hostDir}/" 2>/dev/null || docker cp ${containerId}:"${directory}" "${hostDir}/" 2>/dev/null`, (err) => {
if (err) console.log('⚠️ SmartClone sync to host failed:', err.message);
else console.log('✅ SmartClone synced to host Desktop:', cloneDir);
});
@@ -831,7 +831,7 @@ p, span, li, label, td, th {
// 3. Sincronizar o novo diretório com o host (somente se NÃO for customPath, pois customPath já está no lugar certo)
if (!isCustomPath) {
const hostDir = outputDir || '/root/Desktop/Clonados';
const hostDir = outputDir || '/root/Desktop/CLONE_SITE';
const containerId = require('os').hostname();
exec(`mkdir -p "${hostDir}" && cp -r "${newFolderPath}" "${hostDir}/" 2>/dev/null || docker cp ${containerId}:"${newFolderPath}" "${hostDir}/" 2>/dev/null`, (syncErr) => {
if (syncErr) console.log('⚠️ Redesign sync to host failed:', syncErr.message);