Selaa lähdekoodia

Remote servers list filename

Bob Mottram 9 vuotta sitten
vanhempi
commit
6077da4ac6
1 muutettua tiedostoa jossa 5 lisäystä ja 2 poistoa
  1. 5
    2
      src/freedombone-remote

+ 5
- 2
src/freedombone-remote Näytä tiedosto

39
 MY_USERNAME=$USER
39
 MY_USERNAME=$USER
40
 
40
 
41
 # Filename of the remote backups list
41
 # Filename of the remote backups list
42
-FRIENDS_SERVERS_LIST=/home/$MY_USERNAME/backup.list
42
+FRIENDS_SERVERS_LIST=
43
 
43
 
44
 # Minimum password length in characters
44
 # Minimum password length in characters
45
 MINIMUM_PASSWORD_LENGTH=8
45
 MINIMUM_PASSWORD_LENGTH=8
114
 shift
114
 shift
115
 done
115
 done
116
 
116
 
117
-
118
 function interactive_configuration_remote_backups {
117
 function interactive_configuration_remote_backups {
119
   if [ ! $MY_USERNAME ]; then
118
   if [ ! $MY_USERNAME ]; then
120
       echo $'Please specify a username with the -u option'
119
       echo $'Please specify a username with the -u option'
254
   echo ''
253
   echo ''
255
 }
254
 }
256
 
255
 
256
+if [ ! $FRIENDS_SERVERS_LIST ]; then
257
+    FRIENDS_SERVERS_LIST=/home/$MY_USERNAME/backup.list
258
+fi
259
+
257
 interactive_configuration_remote_backups
260
 interactive_configuration_remote_backups
258
 show_result
261
 show_result
259
 exit 0
262
 exit 0