Commit bf054b5f authored by Hugo Hörnquist's avatar Hugo Hörnquist
Browse files

manage script improvement

parent c33675d6
...@@ -30,7 +30,8 @@ Ports: ...@@ -30,7 +30,8 @@ Ports:
Other files in this directory Other files in this directory
----------------------------- -----------------------------
- domaindb.db -- SQLite Database - domaindb.db -- SQLite Database
- domaindb.schema -- sqlite create script - domaindb.schema -- SQLite create script
- domaindb.sql -- mysql create script - domaindb.sql -- MySQL create script
- mysql_setup.sql -- mysql user create script - mysql_setup.sql -- MySQL user create script
- test_data.sql -- MySQL dummy data
...@@ -9,6 +9,10 @@ case $1 in ...@@ -9,6 +9,10 @@ case $1 in
--password=password \ --password=password \
lysns lysns
;; ;;
ssh)
echo "Password is 'password'"
ssh -p 2222 root@localhost
;;
start) start)
VBoxManage startvm LysMemberSQL --type headless VBoxManage startvm LysMemberSQL --type headless
;; ;;
...@@ -16,10 +20,13 @@ case $1 in ...@@ -16,10 +20,13 @@ case $1 in
VBoxManage controlvm LysMemberSQL poweroff VBoxManage controlvm LysMemberSQL poweroff
;; ;;
*) *)
echo "==== USAGE =====" cat <<- EOF
echo "For arg 1 use:" ==== USAGE =====
echo "mysql: connect to mysql on port 2223" For arg 1 use:
echo "start: start vm" mysql: connect to mysql on port 2223
echo "stop: stop vm" ssh: ssh's into a root shell
start: start vm
stop: stop vm
EOF
;; ;;
esac esac
Markdown is supported
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