mirror of
https://github.com/YunoHost-Apps/osjs_ynh.git
synced 2024-09-03 19:56:11 +02:00
Update install
This commit is contained in:
parent
19bd2d0ae6
commit
9f47949c4f
1 changed files with 2 additions and 10 deletions
|
@ -1,7 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
source .fonctions
|
||||
set -eu
|
||||
source .fonctions
|
||||
source /usr/share/yunohost/helpers
|
||||
#=================================================
|
||||
# MANAGE FAILURE OF THE SCRIPT
|
||||
#=================================================
|
||||
|
@ -15,10 +16,6 @@ is_public=$YNH_APP_ARG_IS_PUBLIC
|
|||
port=400
|
||||
|
||||
app=$YNH_APP_INSTANCE_NAME
|
||||
|
||||
# Source app helpers
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
script_dir=$PWD
|
||||
|
||||
# Vérifie que les variables ne sont pas vides.
|
||||
|
@ -28,13 +25,8 @@ CHECK_FINALPATH # Vérifie que le dossier de destination n'est pas déjà utilis
|
|||
|
||||
# Install dependency to convert tracks to a readable format for the browser
|
||||
sudo cp -a ../conf/os.js.list /etc/apt/sources.list.d/
|
||||
|
||||
sudo apt-get update
|
||||
sudo apt-get -t stretch -y -qq install nodejs-legacy nodejs npm
|
||||
check_or_install_npm
|
||||
|
||||
# Source YunoHost helpers
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
# Copy files to the right place
|
||||
final_path=/var/www/$app
|
||||
|
|
Loading…
Add table
Reference in a new issue