Advertisement
djyarik

SSH заливка

May 20th, 2016
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.36 KB | None | 0 0
  1. // for Autodor.SQLite.Wmsn https://goo.gl/QiUFBc
  2.  
  3.  
  4. //Очистка папки сайта
  5. rm -r /home/admin/web/site/public_html/*; rm -f /home/admin/web/site/public_html/.htaccess;
  6.  
  7. //Копирование дора из папки itogo
  8. cp /home/admin/web/itogo/* /home/admin/web/site/public_html; cp -r /home/admin/web/itogo/* /home/admin/web/site/public_html; cp /home/admin/web/itogo/.htaccess /home/admin/web/site/public_html;
  9.  
  10. //Выставление прав на папки и файлы есть же )
  11. chmod 777 /home/admin/web/site/public_html/keys; chmod 777 /home/admin/web/site/public_html/cookie; chmod 777 /home/admin/web/site/public_html/db; chmod 777 /home/admin/web/site/public_html/ping; chmod 777 /home/admin/web/site/public_html/log;
  12.  
  13. //Переименование
  14. mv /home/admin/web/site/public_html/keys/keys.ru.txt /home/admin/web/site/public_html/keys/site.txt;
  15.  
  16. //Все это дело добавляется в рhp скрипт, подгружается список доменов, заменяется sitе на домен, и все выводиться в 1 (одну блеать!) строчку в текстовый например файл. После ; всегда идет пробел!
  17.  
  18. //готовую строчку грузим в консоль ssh например через https://www.bitvise.com/tunnelier-download
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement