Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Looking for option to run script at startup and shutdown

Featured Replies

So far I've used the go script to overwrite /etc/ssh and /root dirs with my own keys and config for shell, and persistent .bash_history file and such, like so;

# force overwrite root config to /root/ and etc/ssh and set permissions
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/*

and then I manually rsync to update them from time to time, like so;

rsync -qua --min-size=1 --no-specials --no-devices --no-links /root/* /boot/config/xroot
rsync -qua --min-size=1 --no-specials --no-devices --no-links /etc/ssh/* /boot/config/xssh

but that last bit I would like to be able to perform automagically at shutdown or reboot. Any good spot for this?

Edited by Julius

User scripts plugin. Schedule run at array stopping or array starting

Sent from my NSA monitored device

  • Author
12 hours ago, Squid said:

User scripts plugin. Schedule run at array stopping or array starting

Sent from my NSA monitored device
 

Yes, that will do, thanks!

Regarding ssh, do you know if it's easy to change the code that keeps updating the /etc/ssh content after each restart of sshd? I mean, even that last bit of my previous post (updating the source that I use to overwrite the ssh) isn't fail-safe, because I found out the hard way that unRAID updated the keys without me knowing. If someone at unRAID core is reading; could you please make that an Advanced option? Something like

"Leave /etc/ssh alone after initial ramdisk creation and sshd restarts [x]"

would help us a lot.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.