nextcloudpi-install.sh 877 B

1234567891011121314151617181920212223242526272829303132333435
  1. #!/usr/bin/env bash
  2. # Copyright (c) 2021-2023 tteck
  3. # Author: tteck (tteckster)
  4. # License: MIT
  5. # https://github.com/tteck/Proxmox/raw/main/LICENSE
  6. source /dev/stdin <<< "$FUNCTIONS_FILE_PATH"
  7. color
  8. verb_ip6
  9. catch_errors
  10. setting_up_container
  11. network_check
  12. update_os
  13. msg_info "Installing Dependencies"
  14. $STD apt-get install -y curl
  15. $STD apt-get install -y sudo
  16. $STD apt-get install -y mc
  17. msg_ok "Installed Dependencies"
  18. msg_info "Installing NextCloudPi (Patience)"
  19. $STD bash <(curl -fsSL https://raw.githubusercontent.com/nextcloud/nextcloudpi/master/install.sh)
  20. sed -i "s/3 => 'nextcloudpi.lan',/3 => '0.0.0.0',/g" /var/www/nextcloud/config/config.php
  21. sed -i '{s|root:/usr/sbin/nologin|root:/bin/bash|g}' /etc/passwd
  22. service apache2 restart
  23. msg_ok "Installed NextCloudPi"
  24. motd_ssh
  25. root
  26. msg_info "Cleaning up"
  27. $STD apt-get autoremove
  28. $STD apt-get autoclean
  29. msg_ok "Cleaned"