Compare commits

..

No commits in common. "fab4d0a47620ee9eea2830eb0b9fa602a7636ef2" and "df607f0656cb858205f5e1bb7dcc796dfa778b2f" have entirely different histories.

3 changed files with 2 additions and 7 deletions

View file

@ -22,7 +22,7 @@ do
done done
LOGINS=$(who -u | grep pts\/ | wc -l) LOGINS=$(who -u | grep pts\/ | wc -l)
if [[ "$LOGINS" -gt 0 ]] if ! [[ "$LOGINS" =~ "^0$" ]]
then then
echo "ABORT: $LOGINS user logins" echo "ABORT: $LOGINS user logins"
exit 0 exit 0

View file

@ -24,7 +24,7 @@ def wake_command(metadata):
return { return {
'wol-sleeper': { 'wol-sleeper': {
'wake_command': f"ssh -o StrictHostKeyChecking=no wol@{waker_hostname} 'wakeonlan {mac} && while ! ping {ip} -c1 -W3; do true; done'", 'wake_command': f"ssh wol@{waker_hostname} 'wakeonlan {mac} && while ! ping {ip} -c1 -W3; do true; done'",
}, },
} }

View file

@ -1,5 +0,0 @@
from bundlewrap.operations import run_local
def node_apply_start(repo, node, interactive=False, **kwargs):
if node.has_bundle('wol-sleeper'):
repo.get_node(node.metadata.get('wol-sleeper/waker')).run(node.metadata.get('wol-sleeper/wake_command'))