Jeśli chcesz wziąć udział w dyskusjach na forum - zaloguj się. Jeżeli nie masz loginu - poproś o członkostwo.
Vanilla 1.1.4 jest produktem Lussumo. Więcej informacji: Dokumentacja, Forum.
Kaz:
A nie da się tego download/update/upload zrobić automatem?<script>alert("Test");</script>
$text = str_replace('\r\n', ' ', $text);
#!/bin/bash
SECONDS=0
echo -e "creating structure"
mkdir -p /home/zbyti/Ramdisk/aol/current
cd /home/zbyti/Ramdisk/aol
echo -e "copy news.txt"
sshpass -p "secret" scp login@domain:cn/data/news.txt current/news.txt
echo -e "copy comments.txt"
sshpass -p "secret" scp login@domain:cn/data/comments.txt current/comments.txt
echo -e "copy converter"
cp /home/zbyti/Projects/AOL_Converter/convert-and-populate.sh .
cp /home/zbyti/Projects/AOL_Converter/comments-converter-inserter.php .
cp /home/zbyti/Projects/AOL_Converter/news-converter-inserter.php .
cp /home/zbyti/Projects/AOL_Converter/updates.sql .
cp /home/zbyti/Projects/AOL_Converter/aol-archive-complete.db /home/zbyti/Ramdisk/aol/aol.db
echo -e "aol.db updating..."
./convert-and-populate.sh 2
cat updates.sql | sqlite3 aol.db
echo -e "aol.db was updated"
sshpass -p "secret" scp aol.db login@domain:wayback/
echo -e "aol.db was uploaded"
cd ..
rm -r aol
echo -e "Done in $SECONDS seconds"
./update-wayback.sh
creating structure
copy news.txt
copy comments.txt
copy converter
aol.db updating...
Populating current data...
Populating is now complete!
aol.db was updated
aol.db was uploaded
Done in 30 seconds
#!/bin/bash
SECONDS=0
echo -e "creating structure"
cp -R /home/zbyti/Projects/AOL_update_wayback /home/zbyti/Ramdisk
cd /home/zbyti/Ramdisk/AOL_update_wayback
echo -e "copying data..."
sshpass -p "secret" scp -T login@domain:"cn/data/news.txt cn/data/comments.txt" current
echo -e "aol.db updating..."
./convert-and-populate.sh 2
cat updates.sql | sqlite3 aol.db
echo -e "aol.db was updated"
sshpass -p "secret" scp aol.db login@domain:wayback/
echo -e "aol.db was uploaded"
cd ..
rm -r AOL_update_wayback
echo -e "Done in $SECONDS seconds"