Codebase list poshc2 / upstream/latest resources / scripts / posh-service-ansible
upstream/latest

Tree @upstream/latest (Download .tar.gz)

posh-service-ansible @upstream/latestraw · 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