INSTALL 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. #!/bin/bash
  2. # installing script for UPMS
  3. ROOT_UID=0
  4. if [ "$UID" -ne "$ROOT_UID" ]
  5. then
  6. echo "You should run this script as root."
  7. sleep 3
  8. echo "Installation aborted !"
  9. exit 0
  10. else
  11. echo ""
  12. echo "Hello ${USERNAME} "
  13. echo ""
  14. echo "We will install UPMS 'Uruk Package Managers Simulator' ......."
  15. echo ""
  16. echo "This program can simulate a Famous package managers using your system package manager as back end"
  17. echo ""
  18. echo ""
  19. read -p "Do you want to continue ? [Y]es, [N]o: " answer
  20. case $answer in
  21. [Yy]* ) ;;
  22. [Nn]* ) echo "Sorry, installation aborted GoodBey :-) .";exit 99;;
  23. * ) echo "Wrong value: installation aborted."; exit 99;;
  24. esac
  25. echo ""
  26. echo "Be cool and wait......"
  27. echo ""
  28. cDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
  29. read -p "What is your distribution you use ? [A]rchlinux, [D]ebian : " distro
  30. distro="${input:-$distro}"
  31. sleep 0.5
  32. echo "."
  33. sleep 0.5
  34. echo "."
  35. sleep 0.5
  36. echo "."
  37. sleep 0.5
  38. echo "."
  39. case $distro in
  40. [Aa]* )
  41. cp -R $cDIR/arch/* /usr/bin/
  42. chmod +x /usr/bin/apt-cache
  43. chmod +x /usr/bin/apt-get
  44. chmod +x /usr/bin/slackpkg
  45. chmod +x /usr/bin/zypper
  46. chmod +x /usr/bin/nix-env
  47. chmod +x /usr/bin/nix-collect-garbage
  48. chmod +x /usr/bin/eopkg
  49. chmod +x /usr/bin/emerge
  50. chmod +x /usr/bin/dnf;;
  51. [Dd]* )
  52. cp -R $cDIR/debian/* /usr/bin/
  53. chmod +x /usr/bin/pacman
  54. chmod +x /usr/bin/slackpkg
  55. chmod +x /usr/bin/zypper
  56. chmod +x /usr/bin/nix-env
  57. chmod +x /usr/bin/nix-collect-garbage
  58. chmod +x /usr/bin/eopkg
  59. chmod +x /usr/bin/emerge
  60. chmod +x /usr/bin/dnf;;
  61. * ) echo "Wrong value: installation aborted."; exit 99;;
  62. esac
  63. echo
  64. echo "Installation complete !"
  65. echo ""
  66. echo "HaveFUNN and Be FREE !"
  67. sleep 0.5
  68. echo "."
  69. sleep 0.5
  70. echo "."
  71. sleep 0.5
  72. echo "."
  73. sleep 0.5
  74. echo "."
  75. echo "GoodBey :-) !"
  76. exit 0
  77. fi