Created
January 26, 2014 05:53
-
-
Save nasa114/8629045 to your computer and use it in GitHub Desktop.
Speedtest.net miniをアップデートするだけのスクリプト。PHP動作を前提としているのでASP環境など考えていません。
This file contains 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 | |
cd /var/www/html | |
rm -rf mini | |
wget http://c.speedtest.net/mini/mini.zip | |
unzip mini.zip | |
cd mini | |
mv index-php.html index.html | |
# remove not to need file | |
rm -rf index-asp.html | |
rm -rf index-aspx.html | |
rm -rf index-jsp.html | |
rm -rf ./speedtest/upload.asp | |
rm -rf ./speedtest/upload.aspx | |
rm -rf ./speedtest/upload.jsp | |
rm -rf ../mini.zip | |
cd .. | |
chown apache:apache -R mini | |
chmod 755 -R mini |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment