1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/onlyoffice_ynh.git synced 2024-09-03 19:56:11 +02:00

Fix node and apt

This commit is contained in:
Maniack Crudelis 2018-11-06 16:43:47 +01:00 committed by GitHub
parent c544133537
commit 55297f7c72
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -83,10 +83,11 @@ ynh_app_setting_set $app port $port
# INSTALL POSTGRES # INSTALL POSTGRES
#============================================== #==============================================
ynh_install_app_dependencies postgresql redis-server rabbitmq-server apt-transport-https # ynh_install_app_dependencies postgresql redis-server rabbitmq-server apt-transport-https
#sudo apt-get install -y postgresql redis-server rabbitmq-server apt-transport-https #sudo apt-get install -y postgresql redis-server rabbitmq-server apt-transport-https
#Next for new test 5 #Next for new test 5
ynh_install_app_dependencies postgresql redis-server apt-transport-https libcurl3 libxml2 supervisor fonts-dejavu fonts-liberation ttf-mscorefonts-installer fonts-crosextra-carlito fonts-takao-gothic fonts-opensymbol libasound2 libboost-regex-dev libcairo2 libgconf2-4 libgtkglext1 libxtst6 postgresql-client pwgen xvfb
# ynh_install_app_dependencies postgresql redis-server rabbitmq-server apt-transport-https libcurl3 libxml2 supervisor fonts-dejavu fonts-liberation ttf-mscorefonts-installer fonts-crosextra-carlito fonts-takao-gothic fonts-opensymbol # ynh_install_app_dependencies postgresql redis-server rabbitmq-server apt-transport-https libcurl3 libxml2 supervisor fonts-dejavu fonts-liberation ttf-mscorefonts-installer fonts-crosextra-carlito fonts-takao-gothic fonts-opensymbol
#================================================= #=================================================
@ -95,16 +96,16 @@ ynh_install_app_dependencies postgresql redis-server rabbitmq-server apt-transpo
# Use Helper instead of package from the repo # Use Helper instead of package from the repo
#Next for new test 5 #Next for new test 5
#ynh_install_nodejs 8.12.0 ynh_install_nodejs 8.12.0
curl -sL https://deb.nodesource.com/setup_8.x | sudo bash - # curl -sL https://deb.nodesource.com/setup_8.x | sudo bash -
#=============================================== #===============================================
# ADD ONLYOFFCE REPOSITORY # ADD ONLYOFFCE REPOSITORY
#=============================================== #===============================================
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys CB2DE8E5 # apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys CB2DE8E5
echo "deb http://download.onlyoffice.com/repo/debian squeeze main" | sudo tee /etc/apt/sources.list.d/onlyoffice.list # echo "deb http://download.onlyoffice.com/repo/debian squeeze main" | sudo tee /etc/apt/sources.list.d/onlyoffice.list
ynh_package_update # ynh_package_update
#============================================== #==============================================
# CREATE DB # CREATE DB
@ -124,13 +125,15 @@ echo onlyoffice-documentserver onlyoffice/ds-port select 9980 | sudo debconf-set
# INSTALL ONLYOFFICE # INSTALL ONLYOFFICE
#============================================== #==============================================
ynh_package_install onlyoffice-documentserver # ynh_package_install onlyoffice-documentserver
#sudo apt-get install -y onlyoffice-documentserver #sudo apt-get install -y onlyoffice-documentserver
#apt install onlyoffice-documentserver #apt install onlyoffice-documentserver
#wget --no-verbose https://github.com/ONLYOFFICE/DocumentServer/releases/download/ONLYOFFICE-DocumentServer-5.2.3/onlyoffice-documentserver_amd64.deb ynh_package_install_from_equivs ../conf/fakenode-deps.control
#dpkg --install onlyoffice-documentserver_amd64.deb wget --no-verbose https://github.com/ONLYOFFICE/DocumentServer/releases/download/ONLYOFFICE-DocumentServer-5.2.3/onlyoffice-documentserver_amd64.deb
dpkg --install onlyoffice-documentserver_amd64.deb
# ynh_apt remove nodejs
#================================================= #=================================================
# NGINX CONFIGURATION # NGINX CONFIGURATION
@ -188,4 +191,3 @@ ynh_app_setting_set $app unprotected_uris "/"
# Reload services # Reload services
systemctl restart nginx systemctl restart nginx