Last active
September 4, 2018 12:40
-
-
Save nanasess/2e84e42b8e3f385618f2eec5c35e5c5a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
## ATTENTION IIS の場合は web.config を .htaccess に変更すること! | |
ECCUBE_HOST=http://example.com/ec-cube | |
while read TARGET | |
do | |
echo -n "$ECCUBE_HOST/$TARGET..." | |
STATUS=`curl -L -s $ECCUBE_HOST/$TARGET -o /dev/null -w '%{http_code}\n'` | |
if [ $STATUS = '200' ] | |
then | |
echo "ERROR! $TARGET is accessible!" | |
exit 1 | |
else | |
echo $STATUS | |
fi | |
done <<EOF | |
.coveralls.yml | |
.env | |
.env.dist | |
.env.install | |
.git | |
.github | |
.gitignore | |
.gitmodules | |
.htaccess | |
.php_cs.cache | |
.php_cs.dist | |
.scrutinizer.yml | |
.travis.yml | |
tests | |
COPYING | |
Procfile | |
app | |
app.json | |
appveyor.yml | |
bin | |
codeception | |
codeception.sh | |
codeception.yml | |
composer.json | |
composer.lock | |
composer.phar | |
gulpfile.js | |
node_modules | |
package-lock.json | |
package.json | |
phpunit.xml.dist | |
src | |
symfony.lock | |
tests | |
var | |
vendor | |
web.config | |
vendor/psr/log/README.md | |
vendor/vlucas/phpdotenv/LICENSE.txt | |
bin/console | |
EOF | |
while read TARGET | |
do | |
echo -n "$ECCUBE_HOST/$TARGET..." | |
STATUS=`curl -L -s $ECCUBE_HOST/$TARGET -o /dev/null -w '%{http_code}\n'` | |
if [ $STATUS != '200' ] | |
then | |
echo "ERROR! $TARGET is not accessible!" | |
exit 1 | |
else | |
echo $STATUS | |
fi | |
done <<EOF | |
html/template/admin/assets/js/vendor/spin.min.js | |
html/template/admin/assets/js/vendor/moment-with-locales.min.js | |
html/template/install/dist/js/bootstrap.js | |
EOF | |
echo "Finished successful" | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment