Commit cc5f093f authored by Nolan's avatar Nolan

Make deploy without CLIENT_SRC/OS_SRC print an error.

parent e6feae11
......@@ -11,14 +11,15 @@ $(BOUNDERY_SSHCONF): start-vms
vagrant ssh boundery.me -c 'sudo cp -r .ssh /root/'
upload-central: start-vms $(BOUNDERY_SSHCONF)
@test $(CENTRAL_SRC)
@test $(CENTRAL_SRC) || ( echo 'set CENTRAL_SRC' && false)
vagrant ssh boundery.me -c '[ -f /usr/local/share/ca-certificates/pebble.minica.crt ]'
vagrant upload $(CENTRAL_SRC)/setupserver /tmp/setupserver boundery.me
vagrant ssh boundery.me -c 'echo fakepasswd | sudo /tmp/setupserver'
SERVER=boundery.me SSH_CONF=`readlink -f $(BOUNDERY_SSHCONF)` make -C $(CENTRAL_SRC) deploy
#XXX Change client/image uploads to use make deploy just like upload-central.
upload-linux: start-vms $(BOUNDERY_SSHCONF)
@test $(CLIENT_SRC)
@test $(CLIENT_SRC) || ( echo 'set CLIENT_SRC' && false)
vagrant ssh boundery.me -c '[ -f /usr/local/share/ca-certificates/pebble.minica.crt ]'
make -C $(CLIENT_SRC) linux
vagrant ssh boundery.me -c 'sudo mkdir -p /root/data/sslnginx/html/clients'
......@@ -26,7 +27,7 @@ upload-linux: start-vms $(BOUNDERY_SSHCONF)
root@boundery.me:/root/data/sslnginx/html/clients/
upload-windows: start-vms $(BOUNDERY_SSHCONF)
@test $(CLIENT_SRC)
@test $(CLIENT_SRC) || ( echo 'set CLIENT_SRC' && false)
vagrant ssh boundery.me -c '[ -f /usr/local/share/ca-certificates/pebble.minica.crt ]'
make -C $(CLIENT_SRC) windows
vagrant ssh boundery.me -c 'sudo mkdir -p /root/data/sslnginx/html/clients'
......@@ -34,7 +35,7 @@ upload-windows: start-vms $(BOUNDERY_SSHCONF)
root@boundery.me:/root/data/sslnginx/html/clients/
upload-macos: start-vms $(BOUNDERY_SSHCONF)
@test $(CLIENT_SRC)
@test $(CLIENT_SRC) || ( echo 'set CLIENT_SRC' && false)
vagrant ssh boundery.me -c '[ -f /usr/local/share/ca-certificates/pebble.minica.crt ]'
make -C $(CLIENT_SRC) macos
vagrant ssh boundery.me -c 'sudo mkdir -p /root/data/sslnginx/html/clients'
......@@ -42,7 +43,7 @@ upload-macos: start-vms $(BOUNDERY_SSHCONF)
root@boundery.me:/root/data/sslnginx/html/clients/
upload-pczip: start-vms
@test $(OS_SRC)
@test $(OS_SRC) || ( echo 'set OS_SRC' && false)
vagrant ssh boundery.me -c '[ -f /usr/local/share/ca-certificates/pebble.minica.crt ]'
make -C $(OS_SRC) pc_zip
vagrant ssh boundery.me -c 'sudo mkdir -p /root/data/sslnginx/html/images'
......@@ -50,7 +51,7 @@ upload-pczip: start-vms
root@boundery.me:/root/data/sslnginx/html/images/
upload-rpi3zip: start-vms
@test $(OS_SRC)
@test $(OS_SRC) || ( echo 'set OS_SRC' && false)
vagrant ssh boundery.me -c '[ -f /usr/local/share/ca-certificates/pebble.minica.crt ]'
make -C $(OS_SRC) rpi3_zip
vagrant ssh boundery.me -c 'sudo mkdir -p /root/data/sslnginx/html/images'
......
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