From 88dc5d35ac0d8b6ab3205f8384cd16565f85e934 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 2 Oct 2016 11:26:16 +0100 Subject: [PATCH] Lower case --- src/freedombone-app-blog | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/freedombone-app-blog b/src/freedombone-app-blog index bd41fd77..0ca0c6ac 100755 --- a/src/freedombone-app-blog +++ b/src/freedombone-app-blog @@ -191,11 +191,11 @@ function install_interactive_blog { } function change_password_blog { - if ! grep -q "Blog domain:" $COMPLETION_FILE; then + if ! grep -q "blog domain:" $COMPLETION_FILE; then return - echo "Blog domain:$FULLBLOG_DOMAIN_NAME" >> $COMPLETION_FILE + echo "blog domain:$FULLBLOG_DOMAIN_NAME" >> $COMPLETION_FILE fi - FULLBLOG_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "Blog domain" | head -n 1 | awk -F ':' '{print $2}') + FULLBLOG_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "blog domain" | head -n 1 | awk -F ':' '{print $2}') BLOG_USERNAME="$1" BLOG_PASSWORD="$2" @@ -221,7 +221,7 @@ function upgrade_blog { fi function_check set_repo_commit - set_repo_commit /var/www/$FULLBLOG_DOMAIN_NAME/htdocs "Blog commit" "$FULLBLOG_COMMIT" $FULLBLOG_REPO + set_repo_commit /var/www/$FULLBLOG_DOMAIN_NAME/htdocs "blog commit" "$FULLBLOG_COMMIT" $FULLBLOG_REPO # update blog avatar ${PROJECT_NAME}-blog @@ -229,8 +229,8 @@ function upgrade_blog { function backup_local_blog { FULLBLOG_DOMAIN_NAME='blog' - if grep -q "Blog domain" $COMPLETION_FILE; then - FULLBLOG_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "Blog domain" | awk -F ':' '{print $2}') + if grep -q "blog domain" $COMPLETION_FILE; then + FULLBLOG_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "blog domain" | awk -F ':' '{print $2}') fi source_directory=/var/www/${FULLBLOG_DOMAIN_NAME}/htdocs @@ -253,8 +253,8 @@ function backup_local_blog { function restore_local_blog { FULLBLOG_DOMAIN_NAME='blog' - if grep -q "Blog domain" $COMPLETION_FILE; then - FULLBLOG_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "Blog domain" | awk -F ':' '{print $2}') + if grep -q "blog domain" $COMPLETION_FILE; then + FULLBLOG_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "blog domain" | awk -F ':' '{print $2}') fi if [ $FULLBLOG_DOMAIN_NAME ]; then echo $"Restoring blog installation" @@ -295,8 +295,8 @@ function restore_local_blog { } function backup_remote_blog { - if grep -q "Blog domain" $COMPLETION_FILE; then - FULLBLOG_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "Blog domain" | awk -F ':' '{print $2}') + if grep -q "blog domain" $COMPLETION_FILE; then + FULLBLOG_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "blog domain" | awk -F ':' '{print $2}') temp_backup_dir=/var/www/${FULLBLOG_DOMAIN_NAME}/htdocs if [ -d $temp_backup_dir ]; then echo $"Backing up blog" @@ -311,7 +311,7 @@ function backup_remote_blog { function restore_remote_blog { if [ -d $SERVER_DIRECTORY/backup/blog ]; then - FULLBLOG_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "Blog domain" | awk -F ':' '{print $2}') + FULLBLOG_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "blog domain" | awk -F ':' '{print $2}') echo $"Restoring blog installation $FULLBLOG_DOMAIN_NAME" temp_restore_dir=/root/tempblog mkdir $temp_restore_dir @@ -619,10 +619,10 @@ function install_blog_from_repo { git_clone $FULLBLOG_REPO htdocs cd htdocs git checkout $FULLBLOG_COMMIT -b $FULLBLOG_COMMIT - if ! grep -q "Blog commit" $COMPLETION_FILE; then - echo "Blog commit:$FULLBLOG_COMMIT" >> $COMPLETION_FILE + if ! grep -q "blog commit" $COMPLETION_FILE; then + echo "blog commit:$FULLBLOG_COMMIT" >> $COMPLETION_FILE else - sed -i "s/Blog commit.*/Blog commit:$FULLBLOG_COMMIT/g" $COMPLETION_FILE + sed -i "s/blog commit.*/blog commit:$FULLBLOG_COMMIT/g" $COMPLETION_FILE fi } @@ -705,8 +705,8 @@ function install_blog { function_check add_ddns_domain add_ddns_domain $FULLBLOG_DOMAIN_NAME - if ! grep -q "Blog domain:" $COMPLETION_FILE; then - echo "Blog domain:$FULLBLOG_DOMAIN_NAME" >> $COMPLETION_FILE + if ! grep -q "blog domain:" $COMPLETION_FILE; then + echo "blog domain:$FULLBLOG_DOMAIN_NAME" >> $COMPLETION_FILE fi }