Skip to content
Snippets Groups Projects
Select Git revision
  • 14f744196fb8528a8d63f12e970aff6c04b9fa02
  • main default
  • 35-cgu
  • 34-peertube-support
  • 27-add-autoplay-to-iframe
  • 33-bug-on-youtube-embed-urls
  • RC-Rekall-v1.1-fix_lpo
  • tuleap-140-go-back-to-my-capsules-page-when-i-m-on-capsule-preview-page
  • RC-Rekall-v1.2-fix10
  • RC-Rekall-v1.2-fix9
  • RC-Rekall-v1.2-fix8
  • RC-Rekall-v1.2-fix7
  • RC-Rekall-v1.2-fix6
  • RC-Rekall-v1.2-fix5
  • RC-Rekall-v1.2-fix4
  • RC-Rekall-v1.2-fix3
  • RC-Rekall-v1.2-fix2
  • RC-Rekall-v1.2-fix1
  • RC-Rekall-v1.1-fix-3
  • RC-Rekall-v1.1-fix-2
  • RC-Rekall-v1.1-fix-1
  • RC-Rekall-v1.1-delivered
  • preprod20220209-1535
23 results

functional.suite.yml

Blame
  • OnlyOffice.sh 1.39 KiB
    #!/bin/bash
    
    echo "RUN $(basename "$0") ==="
    
    DIR=$(realpath $(dirname $0)/..)
    if [ ! -e $DIR/main.env ]
    then
        echo "Please copy in racine of NoCloud Auto Installer main.env.sample to main.env and edit it"
        exit 1
    else
        echo "Environment file loaded"
    fi
    . $DIR/main.env
    
    
    . $DIR/install/main.env
    . $DIR/install/Nextcloud.env
     prefix="sudo -u www-data"
     occ_path="$NEXTCLOUD_INSTALL_DIR/occ"
     occ="$prefix $occ_path"
    
     if [ $( $occ app:list | grep -c richdocuments) -eq 1 ]
     then
        # Collabora is installed
        $occ app:disable richdocuments
        # Cleanup
        systemctl stop collabora
        systemctl disable collabora
        docker rm collabora
        docker rmi collabora/code
        a2dissite collabora.conf
        a2dissite collabora-le-ssl.conf
        apache2ctl graceful
        if [ $(docker ps -a | wc -l) -eq 1 ]
        then
            # No need for docker anymore
            aptitude purge $(dpkg -l | awk '/docker/{print $2}')
            sed -i 's/\(.*docker.*\)/# \1/' /etc/apt/sources.list
            rm /etc/apt/sources.list.d/docker.list
            aptitude update
        fi
     fi
    $occ app:enable documentserver_community
    $occ app:enable onlyoffice
    for setting in customizationChat customizationFeedback customizationHelp customizationToolbarNoTabs
    do
        $occ config:app:set onlyoffice $setting --value false
    done
    $occ config:app:set onlyoffice DocumentServerUrl --value "https://nextcloud.$DOMAIN/index.php/apps/documentserver_community/"