Skip to content
Snippets Groups Projects
Commit 3a436fc7 authored by RomanSteinberg's avatar RomanSteinberg
Browse files

FIX: deployment scripts

parent 4d08177d
Branches
Tags
No related merge requests found
#source
if [ -z $1 ] || ![ -d $1 ]
then
s="~/grade-rating/"
s=~/grade-rating/
else
s=$1
fi
......@@ -9,16 +9,16 @@ fi
#destination
if [ -z $2 ] || ![ -d $2 ]
then
d="~/public_html/"
d=~/public_html/
else
d=$2
fi
#shopt -s dotglob
cp -rp $s"web/*" $d
cp -rp ${s}web/* $d
mysqladmin -u mmcs_rating -pPefnesdy drop mmcs_rating
mysqladmin -u mmcs_rating -pPefnesdy create mmcs_rating
mysql -u mmcs_rating -pPefnesdy mmcs_rating < $s"db/Structure.sql"
mysql -u mmcs_rating -pPefnesdy mmcs_rating < $s"db/StoredProcedures.sql"
mysql -u mmcs_rating -pPefnesdy mmcs_rating < $s"db/Sample.sql"
mysql -u mmcs_rating -pPefnesdy mmcs_rating < ${s}db/Structure.sql
mysql -u mmcs_rating -pPefnesdy mmcs_rating < ${s}db/StoredProcedures.sql
mysql -u mmcs_rating -pPefnesdy mmcs_rating < ${s}db/Sample.sql
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment