diff --git a/README.md b/README.md index 0350044..261e41d 100644 --- a/README.md +++ b/README.md @@ -90,11 +90,11 @@ SNApps are placed in the /home/$USER/snapp directory "$USER" being substituted b ## Starting and Stopping the Webserver -SNApp-PI-HOST uses the utility "screen" and the script "snapp.sh" found in /home/$USER/snapp to run the server. If the server is running the terminal command ```screen -r snapp``` will open up the terminal screen showing it running and reporting requests. To stop the server use ```Ctrl C``` while in this terminal screen. Restarting the webserver is done by running the snapp script with ```sudo ./snapp.sh```. This will create the snapp screen again and run the service even if you exit terminal as the screen the webserver runs in is now "detached". If you are uncertain if the webserver is running ```screen -ls``` will reveal any screens running in the background. Lastly if you wish to detach fro the screen and leave it running ```Ctrl A D``` will detach and leave the webserver runnning. +SNApp-PI-HOST uses the utility "screen" and the script "snapp" found in /usr/local/bin to run the server. If the server is running the terminal command ```screen -r snapp``` will open up the terminal screen showing it running and reporting requests. To stop the server use ```Ctrl C``` while in this terminal screen. Restarting the webserver is done by running the snapp script with ```snapp```. This will create the snapp screen again and run the service even if you exit terminal as the screen the webserver runs in is now "detached". If you are uncertain if the webserver is running ```screen -ls``` will reveal any screens running in the background. Lastly if you wish to detach fro the screen and leave it running ```Ctrl A D``` will detach and leave the webserver runnning. ## Selection of Ports -The default port is set to ```80```. This value can be found and changed in the ```snapp.sh``` script. Changing the value will change the port the webserver uses. If you change the port number ensure that you forward that port through your router as well. +The default port is set to ```80```. This value can be found and changed in the ```snapp``` script. Changing the value will change the port the webserver uses. If you change the port number ensure that you forward that port through your router as well. ## Support us diff --git a/installers/common.sh b/installers/common.sh index 1b9a68c..bcf6965 100644 --- a/installers/common.sh +++ b/installers/common.sh @@ -115,6 +115,7 @@ function change_file_ownership() { install_log "Changing file ownership in SNApp directory" sudo chown -R $username:$username "$snapp_dir" || install_error "Unable to change file ownership for 'snapp_dir'" sudo chmod -R 0755 "$snapp_dir" || install_error "Unable to change permissions for 'snapp_dir'" + sudo mv $snapp_dir/snapp /usr/local/bin } function install_complete() { diff --git a/snapp.sh b/snapp similarity index 100% rename from snapp.sh rename to snapp