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 #source
if [ -z $1 ] || ![ -d $1 ] if [ -z $1 ] || ![ -d $1 ]
then then
s="~/grade-rating/" s=~/grade-rating/
else else
s=$1 s=$1
fi fi
...@@ -9,16 +9,16 @@ fi ...@@ -9,16 +9,16 @@ fi
#destination #destination
if [ -z $2 ] || ![ -d $2 ] if [ -z $2 ] || ![ -d $2 ]
then then
d="~/public_html/" d=~/public_html/
else else
d=$2 d=$2
fi fi
#shopt -s dotglob #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 drop mmcs_rating
mysqladmin -u mmcs_rating -pPefnesdy create 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/Structure.sql
mysql -u mmcs_rating -pPefnesdy mmcs_rating < $s"db/StoredProcedures.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/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