fix: Wordpress FTP permission issues
This commit is contained in:
parent
a70e35cb79
commit
edfed57df3
@ -2539,7 +2539,7 @@ export async function activateWordpressFtp(request: FastifyRequest, reply: Fasti
|
|||||||
};
|
};
|
||||||
await fs.writeFile(
|
await fs.writeFile(
|
||||||
`${hostkeyDir}/${id}.sh`,
|
`${hostkeyDir}/${id}.sh`,
|
||||||
`#!/bin/bash\nchmod 600 /etc/ssh/ssh_host_ed25519_key /etc/ssh/ssh_host_rsa_key\nuserdel -f xfs`
|
`#!/bin/bash\nchmod 600 /etc/ssh/ssh_host_ed25519_key /etc/ssh/ssh_host_rsa_key\nuserdel -f xfs\nchown -R 33:33 /home/${ftpUser}/wordpress/`
|
||||||
);
|
);
|
||||||
await asyncExecShell(`chmod +x ${hostkeyDir}/${id}.sh`);
|
await asyncExecShell(`chmod +x ${hostkeyDir}/${id}.sh`);
|
||||||
await fs.writeFile(`${hostkeyDir}/${id}-docker-compose.yml`, yaml.dump(compose));
|
await fs.writeFile(`${hostkeyDir}/${id}-docker-compose.yml`, yaml.dump(compose));
|
||||||
|
@ -180,7 +180,7 @@
|
|||||||
"domain_already_in_use": "Domain {{domain}} is already used.",
|
"domain_already_in_use": "Domain {{domain}} is already used.",
|
||||||
"dns_not_set_error": "DNS not set correctly or propogated for {{domain}}.<br><br>Please check your DNS settings.",
|
"dns_not_set_error": "DNS not set correctly or propogated for {{domain}}.<br><br>Please check your DNS settings.",
|
||||||
"domain_required": "Domain is required.",
|
"domain_required": "Domain is required.",
|
||||||
"settings_saved": "Settings saved.",
|
"settings_saved": "Configuration saved.",
|
||||||
"dns_not_set_partial_error": "DNS not set",
|
"dns_not_set_partial_error": "DNS not set",
|
||||||
"domain_not_valid": "Could not resolve domain or it's not pointing to the server IP address.<br><br>Please check your DNS configuration and try again.",
|
"domain_not_valid": "Could not resolve domain or it's not pointing to the server IP address.<br><br>Please check your DNS configuration and try again.",
|
||||||
"git_source": "Git Source",
|
"git_source": "Git Source",
|
||||||
|
@ -89,7 +89,7 @@
|
|||||||
loading = true;
|
loading = true;
|
||||||
await post(`/databases/${id}`, { ...database, isRunning: $status.database.isRunning });
|
await post(`/databases/${id}`, { ...database, isRunning: $status.database.isRunning });
|
||||||
generateDbDetails();
|
generateDbDetails();
|
||||||
toast.push('Settings saved.');
|
toast.push('Configuration saved.');
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
return errorNotification(error);
|
return errorNotification(error);
|
||||||
} finally {
|
} finally {
|
||||||
|
@ -45,7 +45,7 @@
|
|||||||
});
|
});
|
||||||
await post(`/services/${id}`, { ...service });
|
await post(`/services/${id}`, { ...service });
|
||||||
$disabledButton = false;
|
$disabledButton = false;
|
||||||
toast.push('Settings saved.');
|
toast.push('Configuration saved.');
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
return errorNotification(error);
|
return errorNotification(error);
|
||||||
} finally {
|
} finally {
|
||||||
|
@ -109,6 +109,7 @@
|
|||||||
loading = true;
|
loading = true;
|
||||||
try {
|
try {
|
||||||
await post(`/services/${service.id}/${service.type}/start`, {});
|
await post(`/services/${service.id}/${service.type}/start`, {});
|
||||||
|
return window.location.reload()
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
return errorNotification(error);
|
return errorNotification(error);
|
||||||
} finally {
|
} finally {
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
htmlUrl: source.htmlUrl.replace(/\/$/, ''),
|
htmlUrl: source.htmlUrl.replace(/\/$/, ''),
|
||||||
apiUrl: source.apiUrl.replace(/\/$/, '')
|
apiUrl: source.apiUrl.replace(/\/$/, '')
|
||||||
});
|
});
|
||||||
toast.push('Settings saved.');
|
toast.push('Configuration saved.');
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
return errorNotification(error);
|
return errorNotification(error);
|
||||||
} finally {
|
} finally {
|
||||||
|
@ -69,7 +69,7 @@
|
|||||||
htmlUrl: source.htmlUrl.replace(/\/$/, ''),
|
htmlUrl: source.htmlUrl.replace(/\/$/, ''),
|
||||||
apiUrl: source.apiUrl.replace(/\/$/, '')
|
apiUrl: source.apiUrl.replace(/\/$/, '')
|
||||||
});
|
});
|
||||||
toast.push('Settings saved.');
|
toast.push('Configuration saved.');
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
return errorNotification(error);
|
return errorNotification(error);
|
||||||
} finally {
|
} finally {
|
||||||
|
Loading…
Reference in New Issue
Block a user