]> git.immae.eu Git - perso/Immae/Config/Nix.git/blobdiff - Makefile
Add monitoring script with smartctl
[perso/Immae/Config/Nix.git] / Makefile
index d179acfc86a77d16243a536eb2b770a68f3c3011..d4b41540bb297597492498ce77dab2b7d4af224f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,9 @@ nur:
        ./scripts/make-nur
        curl -o /dev/null -XPOST "https://nur-update.herokuapp.com/update?repo=immae"
 
+push_remote:
+       git push origin $$(stg id {base}):master
+
 shellcheck:
        shellcheck scripts/* deploy/scripts/* modules/private/gitolite/gitolite_ldap_groups.sh modules/private/ssh/ldap_authorized_keys.sh modules/private/pub/restrict
 
@@ -63,6 +66,7 @@ ssh:
 ssh-zoldene-decrypt:
        $(MAKE) ssh-decrypt TARGET=$(@:ssh-%-decrypt=%)
 ssh-decrypt:
+       until ping -c1 $(TARGET); do :; done
        ./scripts/with_env bash -c 'ssh -p 2222 -i $$SSH_IDENTITY_FILE root@$(TARGET) $(SSH_ARGS)'
 
 .PHONY: debug $(addprefix debug-,$(nodes))