Compare commits

..

No commits in common. "0bac9d8d5a6f18dd518d6f8139e7f879fc85f7dd" and "f1a2c5ae8e2f873e767dff83acd65df312008f52" have entirely different histories.

2 changed files with 17 additions and 20 deletions

View File

@ -6,7 +6,6 @@ jobs:
Build-All: Build-All:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: debian:bookworm
valid_volumes: ['/opt/keys'] valid_volumes: ['/opt/keys']
volumes: volumes:
- /opt/keys:/opt/keys - /opt/keys:/opt/keys

View File

@ -844,25 +844,23 @@ loadSettings()
httpd.set_http_redirect(settings.http_redirect); httpd.set_http_redirect(settings.http_redirect);
} }
httpd.all('/app/socket', app.socket); httpd.all('/app/socket', app.socket);
if (tildefriends.http_port > 0 || tildefriends.args.out_http_port_file) { let port = httpd.start(tildefriends.http_port);
let port = httpd.start(tildefriends.http_port); if (tildefriends.args.out_http_port_file) {
if (tildefriends.args.out_http_port_file) { print('Writing the port file.');
print('Writing the port file.'); File.writeFile(
File.writeFile( tildefriends.args.out_http_port_file,
tildefriends.args.out_http_port_file, port.toString() + '\n'
port.toString() + '\n' )
) .then(function (r) {
.then(function (r) { print(
print( 'Wrote the port file:',
'Wrote the port file:', tildefriends.args.out_http_port_file,
tildefriends.args.out_http_port_file, r
r );
); })
}) .catch(function () {
.catch(function () { print('Failed to write the port file.');
print('Failed to write the port file.'); });
});
}
} }
if (tildefriends.https_port) { if (tildefriends.https_port) {