Codebase list poshc2 / 5fb96d58-f53a-431e-8517-37fc2d57888c/upstream resources / scripts / posh-service-ansible
5fb96d58-f53a-431e-8517-37fc2d57888c/upstream

Tree @5fb96d58-f53a-431e-8517-37fc2d57888c/upstream (Download .tar.gz)

posh-service-ansible @5fb96d58-f53a-431e-8517-37fc2d57888c/upstreamraw · history · blame

#!/bin/bash

source /usr/local/bin/_posh-common
get_posh_project_dir

sudo systemctl enable poshc2.service >/dev/null
sudo systemctl restart poshc2.service >/dev/null
while [[ $x -le 10 ]]; do
    if [ -f "$POSH_PROJECT_DIR/poshc2_server.log" ]; then
        break;
    fi
    sleep 1s
    x=$(( $x + 1 ))
done