GitXplorerGitXplorer
b

CheckSakuraVPSMaintenans

public
3 stars
0 forks
1 issues

Commits

List of commits on branch master.
Unverified
2e97cc8895596f085b156d1870b52b2a1d6ccc49

Merge pull request #5 from bootjp/_update

bbootjp committed 8 years ago
Unverified
0b861e18f59de90388c25bc25f94d21ec8f8e632

modify / .scrutinizer.yml

bbootjp committed 8 years ago
Unverified
6beb994e0870e453490b8c57c4abcd2d52dea693

modify / .scrutinizer.yml

bbootjp committed 8 years ago
Unverified
ead777f6a1561e56081418e060216d776d41166b

added bash script sample

bbootjp committed 8 years ago
Unverified
7a9bf2f016467522c31d95ec58d570f847237302

Merge pull request #4 from bootjp/regexp_bug_fix

bbootjp committed 8 years ago
Unverified
9899babdd6619a8da8499e9b722fdb33df1c9442

regexp search not working bug fix

bbootjp committed 8 years ago

README

The README file for this repository.

さくらVPSのメンテナンスに情報にIPアドレスが乗っているかしらべるやつ

Check whether the IP address to the maintenance information page of Sakura VPS exists

Build Status Scrutinizer Code Quality

how to use

git clone git@github.com:bootjp/CheckSakuraVPSMaintenans.git
cd CheckSakuraVPSMaintenans/
# or 
cd checksakuravpsmaintenans/
composer install

and Edit ipaddress.ini

run of script

php sample.php

ex)

docker run -e ENV_INI="ini file path" -v ini file dir/:/tmp bootjp/checksakuravpsmaintenans php /app/sample.php
docker run -it -e ENV_INI='/tmp/ipaddress.ini' -v $(pwd):/tmp bootjp/checksakuravpsmaintenans  php /app/sample.php

run bash script

#!/bin/bash
pull_result=$(docker pull bootjp/checksakuravpsmaintenans)
pull_code=$?
run_result=$(docker run --rm -e ENV_INI='/tmp/ipadress.ini' -v /root/:/tmp/ bootjp/checksakuravpsmaintenans php /app/sample.php)
run_code=$?
if [ 0 -ne ${pull_code} ] ;then
  echo ${pull_result} >&2
  exit 1
elif [ 0 -ne ${run_code} ] ;then
  echo ${run_result} >&2
  exit 1
fi
exit 0