kanboard-install 917 B

1234567891011121314151617181920212223242526272829303132
  1. #!/bin/usr/fish
  2. #### PostgreSQL required
  3. # Install Kanboard
  4. ## Find the latest release on https://github.com/kanboard/kanboard/releases
  5. set version '1.2.11'
  6. ## PostgreSQL setup
  7. sudo -u postgres psql -f Templates/postgres_kanboard.sql
  8. sudo mkdir -p "/var/www/kanboard-$version"
  9. sudo cp Templates/config.php "/var/www/kanboard-$version/"
  10. ## Install PHP
  11. sudo apt install -y apache2 libapache2-mod-php php-cli php-mbstring \
  12. php-opcache php-json php-pgsql php-gd php-xml php-zip
  13. ## Install Kanboard
  14. ### Go to apache folder
  15. cd /var/www
  16. ### Download the latest release from https://github.com/kanboard/kanboard/releases
  17. sudo wget "https://github.com/kanboard/kanboard/archive/v$version.zip"
  18. ### Deploy
  19. sudo unzip "v$version.zip"
  20. sudo mkdir "kanboard-$version/plugins"
  21. sudo chown -R www-data:www-data "kanboard-$version/data"
  22. sudo chown -R www-data:www-data "kanboard-$version/plugins"
  23. sudo rm "v$version.zip"