fix: Permission issues

This commit is contained in:
Andras Bacsai 2022-04-05 17:37:03 +02:00
parent 09841ad4cb
commit 4ba2205af4
2 changed files with 4 additions and 2 deletions

View File

@ -28,8 +28,9 @@
aria-pressed="false"
class="relative mx-20 inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out"
class:opacity-50={disabled || loading}
class:bg-green-600={setting}
class:bg-stone-700={!setting}
class:bg-green-600={!loading && setting}
class:bg-stone-700={!loading && !setting}
class:bg-yellow-500={loading}
>
<span class="sr-only">Use setting</span>
<span

View File

@ -68,6 +68,7 @@ export const post: RequestHandler = async (event) => {
} else {
await asyncExecShell(`echo "${decrypt(ftpHostKeyPrivate)}" > ${hostkeyDir}/${id}.rsa`);
}
await asyncExecShell(`chmod -R 600 ${hostkeyDir}`);
const { network, engine } = destinationDocker;
const host = getEngine(engine);
if (ftpEnabled) {