mirror of https://git.tuxpa.in/a/code-server.git
Fixes #121
This commit is contained in:
parent
3bb5c0bbe5
commit
4eb5331ddc
|
@ -238,7 +238,7 @@ if (isCli) {
|
||||||
if (!options.certKey && !options.cert) {
|
if (!options.certKey && !options.cert) {
|
||||||
logger.warn("No certificate specified. \u001B[1mThis could be insecure.");
|
logger.warn("No certificate specified. \u001B[1mThis could be insecure.");
|
||||||
// TODO: fill in appropriate doc url
|
// TODO: fill in appropriate doc url
|
||||||
logger.warn("Documentation on securing your setup: https://coder.com/docs");
|
logger.warn("Documentation on securing your setup: https://github.com/codercom/code-server/blob/master/doc/security/ssl.md");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!options.noAuth) {
|
if (!options.noAuth) {
|
||||||
|
|
|
@ -61,6 +61,12 @@ export class SharedProcess {
|
||||||
};
|
};
|
||||||
mkdir(this.userDataDir);
|
mkdir(this.userDataDir);
|
||||||
mkdir(extensionsDir);
|
mkdir(extensionsDir);
|
||||||
|
const backupsDir = path.join(this.userDataDir, "Backups");
|
||||||
|
mkdir(backupsDir);
|
||||||
|
const workspacesFile = path.join(backupsDir, "workspaces.json");
|
||||||
|
if (!fs.existsSync(workspacesFile)) {
|
||||||
|
fs.closeSync(fs.openSync(workspacesFile, "w"));
|
||||||
|
}
|
||||||
|
|
||||||
this.setState({
|
this.setState({
|
||||||
state: SharedProcessState.Starting,
|
state: SharedProcessState.Starting,
|
||||||
|
|
Loading…
Reference in New Issue