Skip to content

Instantly share code, notes, and snippets.

@fergusean
fergusean / README.md
Last active November 8, 2020 22:30 — forked from icedream/README.md
Adjusting SELinux to change SSH port in Fedora CoreOS

See coreos/fedora-coreos-tracker#396 (comment) for a bit of explanation.

Warning: The script will trigger warning messages in the systemd journal log that look like this:

systemd[1]: sshd.service: Found left-over process 4270 (conmon) in control group while starting unit. Ignoring.
systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.

This is probably a side effect of the script booting up podman containers to run semanage - I don't know how to get rid of this properly if it's possible at all but I think this can be ignored for now.

SSH daemon can take quite a long while to start for the first time due to the one-time image build.

var Image = require('parse-image');
var Comic = Parse.Object.extend('Comic');
Parse.Cloud.job('updateCache', function(request, response) {
getLatestStoredNum(function(num) {
console.log('Latest stored comic is ' + num);
checkForAndCacheNewComicsSince(num, function(success) {
if (success)
response.success('OK');
else