mirror of
https://github.com/10h30/ols-docker-env.git
synced 2026-05-12 15:21:24 +09:00
update travis
This commit is contained in:
Regular → Executable
Executable
+59
@@ -0,0 +1,59 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -o errexit
|
||||
|
||||
install_demo(){
|
||||
./bin/demosite.sh
|
||||
}
|
||||
|
||||
verify_lsws(){
|
||||
curl -sIk http://localhost:7080/ | grep -i LiteSpeed
|
||||
if [ ${?} = 0 ]; then
|
||||
echo '[O] https://localhost:7080/'
|
||||
else
|
||||
echo '[X] https://localhost:7080/'
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
verify_page(){
|
||||
curl -sIk http://localhost:80/ | grep -i WordPress
|
||||
if [ ${?} = 0 ]; then
|
||||
echo '[O] http://localhost:80/'
|
||||
else
|
||||
echo '[X] http://localhost:80/'
|
||||
exit 1
|
||||
fi
|
||||
curl -sIk https://localhost:443/ | grep -i WordPress
|
||||
if [ ${?} = 0 ]; then
|
||||
echo '[O] https://localhost:443/'
|
||||
else
|
||||
echo '[X] https://localhost:443/'
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
verify_phpadmin(){
|
||||
curl -sIk http://localhost:8080/ | grep -i phpMyAdmin
|
||||
if [ ${?} = 0 ]; then
|
||||
echo '[O] http://localhost:8080/'
|
||||
else
|
||||
echo '[X] http://localhost:8080/'
|
||||
exit 1
|
||||
fi
|
||||
curl -sIk https://localhost:8443/ | grep -i phpMyAdmin
|
||||
if [ ${?} = 0 ]; then
|
||||
echo '[O] http://localhost:8443/'
|
||||
else
|
||||
echo '[X] http://localhost:8443/'
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
main(){
|
||||
verify_lsws
|
||||
verify_phpadmin
|
||||
install_demo
|
||||
verify_page
|
||||
}
|
||||
main
|
||||
Reference in New Issue
Block a user