mirror of https://github.com/coder/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) {
|
||||
logger.warn("No certificate specified. \u001B[1mThis could be insecure.");
|
||||
// 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) {
|
||||
|
|
|
@ -61,6 +61,12 @@ export class SharedProcess {
|
|||
};
|
||||
mkdir(this.userDataDir);
|
||||
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({
|
||||
state: SharedProcessState.Starting,
|
||||
|
|
Loading…
Reference in New Issue