Parcourir la source

putting in script dependence on 'bus' user

* it'll get too confusing with the $HOME and $USER variables, better
  to put in an explicit dependence now and allow people to change
  as needed
* can update to something more reasonable later as demand dictates
clementinecomputing il y a 6 ans
Parent
commit
07ca8fc706
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 3 3
      busunit/scripts/common_values.sh

+ 3 - 3
busunit/scripts/common_values.sh

@@ -29,7 +29,7 @@
 #is one that will be needed by the native app in the future)
 #
 
-BASEDIR="$HOME"
+BASEDIR='/home/bus'
 
 #How long to sleep after a dial attempt before checking if we have a PPP session successfully constructed
 SLEEP_AFTER_DIAL="30"
@@ -66,9 +66,9 @@ SSH_SERVER_ALIVE_MAXDROP="3"
 
 # These are the default server parameters the system will use if there is not a configured sync server.
 #The system will check 
-SSH_DEFAULT_TARGET="$USER@example.com"
+SSH_DEFAULT_TARGET="bus@example.com"
 SSH_DEFAULT_PORT="6055"
-SSH_DEFAULT_IDENTITY="$HOME/.ssh/id_rsa_bus"
+SSH_DEFAULT_IDENTITY="$BASEDIR/.ssh/id_rsa_bus"
 
 #This regular expression test is used to make sure we have a valid-looking FQDN or IP address
 SSH_TARGET_VALIDITY_CHECK="^[a-zA-Z][a-zA-Z0-9]*@([a-zA-Z0-9-]+\.)+([a-zA-Z0-9-]+)$"