Commit 956367c949d2fc6cea2c7d394048f7dfee028f84
1 parent
29dbd016
bug fix
Showing
1 changed file
with
2 additions
and
2 deletions
spod-manager.sh
@@ -131,7 +131,7 @@ while true; do | @@ -131,7 +131,7 @@ while true; do | ||
131 | GITPASSWORD="$2"; shift | 131 | GITPASSWORD="$2"; shift |
132 | ;; | 132 | ;; |
133 | -s|--spod-git-address) | 133 | -s|--spod-git-address) |
134 | - GITHOST="$2"; shift | 134 | + GITSPOD="$2"; shift |
135 | ;; | 135 | ;; |
136 | -w|--spod-hostname) | 136 | -w|--spod-hostname) |
137 | HOSTNAMESPOD="$2"; shift | 137 | HOSTNAMESPOD="$2"; shift |
@@ -251,7 +251,7 @@ echo "SPOD MANAGER Action: $ACTION ..." | @@ -251,7 +251,7 @@ echo "SPOD MANAGER Action: $ACTION ..." | ||
251 | service apache2 start | 251 | service apache2 start |
252 | ;; | 252 | ;; |
253 | "restoreall") | 253 | "restoreall") |
254 | - if [ -z "$MYSQLUSERNAME" ] || [ -z "$MYSQLPASSWORD" ] || [ -z "$SPODWWW" ]; | 254 | + if [ -z "$MYSQLUSERNAME" ] || [ -z "$MYSQLPASSWORD" ] || [ -z "$SPODWWW" ] || [ -z "$GITUSER" ] || [ -z "$GITPASSWORD" ] || [ -z "$GITEMAIL" ] || [ -z "$GITSPOD" ]; |
255 | then | 255 | then |
256 | echo "You must specify the mysql password and username, SPOD backup dir and DB dump path to restore SPOD." | 256 | echo "You must specify the mysql password and username, SPOD backup dir and DB dump path to restore SPOD." |
257 | exit -2 | 257 | exit -2 |