Update mirrors as part of upgrade script

This commit is contained in:
Bob Mottram 2016-02-01 11:57:35 +00:00
parent 7a19f6dfa6
commit 34fb97870a
2 changed files with 4 additions and 3 deletions

View File

@ -77,8 +77,8 @@ function show_help {
echo ''
echo $' --help Show help'
echo $' -n|--new [yes|no] Start a new mirrors'
echo $" -p|--password [yes|no] Friend's mirrors user password"
echo $" -m|--mypassword [yes|no] Local mirrors user password"
echo $" -p|--password [password] Friend's mirrors user password"
echo $" -m|--mypassword [password] Local mirrors user password"
echo $" --port [number] Friend's server ssh port number"
echo $" -s|--sync [domain] Friend's server domain to sync with"
echo ''

View File

@ -38,7 +38,7 @@ CONFIGURATION_FILE="/root/${PROJECT_NAME}.cfg"
PROJECT_REPO="https://github.com/bashrc/${PROJECT_NAME}"
FRIENDS_MIRRORS_SERVER=
FRIENDS_MIRRORS_SSH_PORT=
FRIENDS_MIRRORS_SSH_PORT=2222
FRIENDS_MIRRORS_PASSWORD=
MY_MIRRORS_PASSWORD=
@ -137,6 +137,7 @@ fi
update-ca-certificates
read_repo_servers
${PROJECT_NAME}-mirrors
if [ ! -d $PROJECT_DIR ]; then
git_clone $PROJECT_REPO $PROJECT_DIR