Upgrade/update resistant local precedence directories/files


Recommended Posts

If it isn't already in Unraid's slackware OS firmware, I would very much like to have options to;

 

- Override config, for example for dnsmasq, ssh and possibly other services already running in the OS.

Usually this is done by using /local.d/ dirs or local.conf files that, if present, override other config files (but only for everything set in them).

That way we can -for example- change sshd config to always and only use a specific port and Ed25519 public-key signature system.

Or use dnsmasq as a LAN dns resolver (with cache) and blocking host methods, like here.

 

- Be able to have persistence for those config files and other additions/changes to the firmware USB-storage media content. So have them remain after upgrades/updates of Unraid.

 

If options to do so are already there, please point me to a wiki or docs that explain how.

Currently I'm using the /boot/config/go for this;

 

#!/bin/bash

cp -af /boot/config/xroot/. /root/
cp -af /boot/config/xssh/. /etc/ssh/
chmod -R 0700 /root
chmod 0600 /root/.ssh/*
chmod 0644 /etc/ssh/*

# Start the Management Utility
/usr/local/sbin/emhttp &

but I suspect there are better ways to do the same..

 

 

Edited by fluisterben
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.