Jump to content

Added lines in go file are not executed


kamhighway

Recommended Posts

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?

Link to comment

Archived

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

×
×
  • Create New...