Want more features on Pastebin? Sign Up, it's FREE!
Guest

Pligg SVN SSH Files

By: a guest on Jun 4th, 2010  |  syntax: Bash  |  size: 1.86 KB  |  views: 625  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #!/bin/bash
  2. echo "What version of Pligg would you like to use?";
  3. echo "Examples: 1.0.4, 1.0.3, or 1.0.2";
  4. read version
  5. echo "Beginning SVN Installation...";
  6. svn co https://pligg.svn.sourceforge.net/svnroot/pligg/tags/$version/ .
  7. echo "SVN Files Added!";
  8.  
  9. echo "Renaming Files...";
  10. mv languages/lang_english.conf.default languages/lang_english.conf
  11. mv languages/lang_arabic.conf.default languages/lang_arabic.conf
  12. mv languages/lang_chinese_simplified.conf.default languages/lang_chinese_simplified.conf
  13. mv languages/lang_german.conf.default languages/lang_german.conf
  14. mv languages/lang_italian.conf.default languages/lang_italian.conf
  15. mv languages/lang_russian.conf.default languages/lang_russian.conf
  16. mv languages/lang_thai.conf.default languages/lang_thai.conf
  17. mv languages/lang_turkmen.conf.default languages/lang_turkmen.conf
  18. mv bannedips.txt.default bannedips.txt
  19. mv settings.php.default settings.php
  20. mv local-antispam.txt.default local-antispam.txt
  21. mv libs/dbconnect.php.default libs/dbconnect.php
  22. # mv htaccess.default .htaccess
  23. echo "File Renaming Complete!";
  24.  
  25. echo "Setting CHMOD Permissions...";
  26. chmod 777 cache
  27. chmod 777 cache/admin_c
  28. chmod 777 cache/templates_c
  29. chmod 777 admin/backup
  30. chmod 777 avatars/groups_uploaded
  31. chmod 777 avatars/user_uploaded
  32. chmod 777 languages
  33. chmod 777 languages/installer_lang.php
  34. chmod 777 languages/installer_lang_default.php
  35. chmod 777 languages/lang_english.conf
  36. chmod 777 languages/lang_arabic.conf
  37. chmod 777 languages/lang_chinese_simplified.conf
  38. chmod 777 languages/lang_german.conf
  39. chmod 777 languages/lang_italian.conf
  40. chmod 777 languages/lang_russian.conf
  41. chmod 777 languages/lang_thai.conf
  42. chmod 777 languages/lang_turkmen.conf
  43. chmod 666 libs/dbconnect.php
  44. chmod 666 bannedips.txt
  45. chmod 666 settings.php
  46. chmod 666 local-antispam.txt
  47. echo "CHMOD Permissions Complete!";
  48.  
  49. echo "SVN Installation Complete!!!";
clone this paste RAW Paste Data