Skip to content
Snippets Groups Projects
Select Git revision
  • 2-migrate-to-phpfpm
  • master default protected
  • 133-fail2ban-page
  • reorganisation
  • 16-maintenace-service
  • 11-fail2ban
  • 6-monit-update
  • 7-dolibarr-fail2ban
  • 6-surveillance-interne-des-serveur
  • test-glpi
  • jessie
  • github
12 results

installNextcloudApps.sh

Blame
  • David Beniamine's avatar
    David Beniamine authored
    90a52a0b
    History
    installNextcloudApps.sh 1.11 KiB
    
    # Copyright (C) 2017  Tetras Libre <admin@tetras-libre.fr>
    # Author: Curt, Sebastien <Sebastien.Curt@tetras-libre.fr>
    #
    # This program is free software: you can redistribute it and/or modify
    # it under the terms of the GNU General Public License as published by
    # the Free Software Foundation, either version 3 of the License, or
    # (at your option) any later version.
    #
    # This program is distributed in the hope that it will be useful,
    # but WITHOUT ANY WARRANTY; without even the implied warranty of
    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    # GNU General Public License for more details.
    #
    # You should have received a copy of the GNU General Public License
    # along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    NEXTCLOUD_INSTALL_DIR="/var/www/nextcloud/"
    APPS="tasks news talk calendar contacts impersonate"
    
    # Take 1 parameters: app_id
    install_app () {
        application=$1
        sudo -u www-data php ${NEXTCLOUD_INSTALL_DIR}occ app:install ${application}
        echo "\tEnable ${application} : terminated, code $?"
    }
    
    for app in $APPS
    do
        install_app $app
    done
    
    unset NEXTCLOUD_INSTALL_DIR