This commit is contained in:
Kyle Carberry 2019-03-27 10:36:32 -04:00
parent 3bb5c0bbe5
commit 4eb5331ddc
No known key found for this signature in database
GPG Key ID: A0409BDB6B0B3EDB
2 changed files with 7 additions and 1 deletions

View File

@ -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) {

View File

@ -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,