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.

Added lines in go file are not executed

Featured Replies

I used nano to add 5 lines to the end of my go file, but they never seem to get executed.

 

Here is the go file:

 

#!/bin/bash
# Start the Management Utility
/usr/local/sbin/emhttp &

mkdir -p ~/.ssh
cp /boot/scripts/ssh/authorized_keys ~/.ssh/
cp /boot/scripts/ssh/known_hosts ~/.ssh/
chmod 700 ~/.ssh
chmod 600 ~/.ssh/*

 

If I put the 5 lines in a separate script, I can execute it with no problem so I think the syntax is ok.  What am I missing?

What happens if you try full paths without the tilde...

 

Just wondering if the go file is executing too soon for the tilde to be "usable"

  • Author

@CHBMB

 

That fixed it.  Thanks for taking the time to steer me in the right direction.

 

 

@CHBMB

 

That fixed it.  Thanks for taking the time to steer me in the right direction.

 

No problem, glad it worked...

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.