Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
* removed deprecated code
* update comments
  • Loading branch information
Coto committed Dec 30, 2013
1 parent 69262eb commit dba266a
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 82 deletions.
35 changes: 0 additions & 35 deletions lib/core.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,41 +77,6 @@ shootProfile
#echo "MACH: $MACH"
#echo "========"


####################################################################
# Get Distro Based on... (Deprecated)
####################################################################
get_DistroBasedOn(){
if [[ ! $OS = "linux" ]]; then
echo "hol"
return
fi
regExpLsbFile="/etc/(.*)[-_]"

etcFiles=`ls /etc/*[-_]{release,version} 2>/dev/null`
for file in $etcFiles; do
if [[ $file =~ $regExpLsbFile ]]; then
DistroBasedOn=${BASH_REMATCH[1]}
echo ${BASH_REMATCH[1]}
break
else
echo "??? Should not occur: Don't find any etcFiles ???"
exit 1
fi
done

DistroBasedOn=`lowercase $DistroBasedOn`

case $DistroBasedOn in
suse) DistroBasedOn="opensuse" ;;
linux) DistroBasedOn="linuxmint" ;;
esac

readonly DistroBasedOn
}
#get_DistroBasedOn
#echo $DistroBasedOn

####################################################################
# Print Menu
####################################################################
Expand Down
2 changes: 1 addition & 1 deletion lib/cron-backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ sudo echo "
####################################################################
# A simple backup script to SVN, TRAC, MYSQL & APACHE FOLDERS
# Author: Coto Augosto C. / Rodrigo Bustos L.
# URL: http://www.protoboard.cl
# URL: http://beecoss.com
# Created: Mar 22, 2010 04:44:42
# Version: 3.4
####################### Instrucctions ######################
Expand Down
10 changes: 5 additions & 5 deletions lib/hook-svn/files/mailer.conf
Original file line number Diff line number Diff line change
Expand Up @@ -164,18 +164,18 @@ unlock_subject_prefix =
# 'no_author' is used. You can specify a default from_addr here and
# if you want to have a particular for_repos group use the author as
# the from address, you can use "from_addr =".
from_addr = %(author)s@protoboard.cl
from_addr = %(author)s@beecoss.com

# The default To: addresses for message. One or more addresses,
# separated by whitespace (no commas).
# NOTE: If you want to use a different character for separating the
# addresses put it in front of the addresses included in square
# brackets '[ ]'.
to_addr = contact@protoboard.cl
to_addr = contact@beecoss.com

# If this is set, then a Reply-To: will be inserted into the message.
#reply_to = %(author)s@protoboard.cl
reply_to = no-reply@protoboard.cl
#reply_to = %(author)s@beecoss.com
reply_to = no-reply@beecoss.com

# Specify which types of repository changes mailer.py will create
# diffs for. Valid options are any combination of
Expand Down Expand Up @@ -301,7 +301,7 @@ show_nonmatching_paths = yes
# to_addr = [mailing-lists]
#
# [authors]
# john = [email protected]
# john = [email protected]
# sarah = [email protected]
#
# [mailing-lists]
Expand Down
44 changes: 5 additions & 39 deletions utilities/blog_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,11 @@
####################################################################
# Set Versions
####################################################################
v_wpmu="2.9.2"
v_bp="1.2.3"
v_wpmu="3.8"

yum install -y unzip
#http://www.todowp.org/download/21/
rm -rf aqua
svn co http://svn.protoboard.cl/aqua/trunk aqua
svn co http://svn.beecoss.com/aqua/trunk aqua
cd aqua

####################################################################
Expand All @@ -26,52 +24,20 @@ svn export http://svn.automattic.com/wordpress/tags/$v_wpmu/ ./ --force
svn status | grep "^\?" | awk '{print $2}' | xargs svn add
svn ci -m "WPMU $v_wpmu"

####################################################################
# Get WordPress MU by version setted (Deprecated)
####################################################################
# svn export http://svn.automattic.com/wordpress-mu/tags/$v_wpmu/ ./ --force
# svn status | grep "^\?" | awk '{print $2}' | xargs svn add
# svn ci -m "WPMU $v_wpmu"

####################################################################
# Get BuddyPress by version setted
####################################################################
svn export http://svn.buddypress.org/tags/$v_bp/ ./wp-content/plugins/buddypress
svn status | grep "^\?" | awk '{print $2}' | xargs svn add
svn ci -m "BP $v_bp"

####################################################################
# WPMU es_ES
####################################################################
# wget http://www.buddypress-es.com/downloads/lockdown/wordpress292Premium.zip
# mkdir -p ./wp-content/languages/
# unzip wordpress292Premium.zip -d ./wp-content/languages/
# rm -f wordpress292Premium.zip
# svn status | grep "^\?" | awk '{print $2}' | xargs svn add
# svn ci -m "WPMU $v_wpmu - es_ES"

####################################################################
# BP es_ES
####################################################################
wget http://www.buddypress-es.com/downloads/lockdown/buddypress-es_ES-$v_bp.zip
unzip buddypress-es_ES-$v_bp.zip -d ./wp-content/plugins/buddypress/bp-languages/
rm -f buddypress-es_ES-$v_bp.zip
svn status | grep "^\?" | awk '{print $2}' | xargs svn add
svn ci -m "BP $v_bp - es_ES"

####################################################################
# Publish on Site
####################################################################
svn export http://svn.protoboard.cl/aqua/trunk /var/www/html/aqua.protoboard/ --force
svn export http://svn.beecoss.com/aqua/trunk /var/www/html/aqua.beecoss/ --force
chown -R apache:apache /var/www/trac/ /var/www/svn/ /var/www/html/
chmod 777 /var/www/html/aqua.protoboard/wp-content/
chmod 777 /var/www/html/aqua.beecoss/wp-content/

cd ../
rm -rf aqua/

echo -e "
define('WP_MEMORY_LIMIT', '96M');
define('BP_ENABLE_USERNAME_COMPATIBILITY_MODE', 'true' );
" >> /var/www/html/aqua.protoboard/wp-config-sample.php
" >> /var/www/html/aqua.beecoss/wp-config-sample.php


2 changes: 1 addition & 1 deletion utilities/blog_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ host=$1
project=$2

if [ "$host" = "" ]; then
echo -e "Protoboard or EPSON?:"
echo -e "Beecoss for example:"
read host
fi

Expand Down
2 changes: 1 addition & 1 deletion utilities/put_backup_trac-svn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
debug=""
color='\e[1;37;44m'
endColor='\e[0m'
mailAdmin='contact@protoboard.cl'
mailAdmin='contact@beecoss.com'

####################################################################
# Get User, password and port
Expand Down

0 comments on commit dba266a

Please sign in to comment.