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
44f2907a60
commit
4f509f784d
1 changed files with 3 additions and 3 deletions
|
@ -24,7 +24,7 @@ path=$(ynh_normalize_url_path $path) # Vérifie et corrige la syntaxe du path.
|
||||||
CHECK_FINALPATH # Vérifie que le dossier de destination n'est pas déjà utilisé.
|
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
|
# 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 cp -a ../conf/osjs.list /etc/apt/sources.list.d/
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get -t stretch -y -qq install nodejs-legacy nodejs npm
|
sudo apt-get -t stretch -y -qq install nodejs-legacy nodejs npm
|
||||||
|
|
||||||
|
@ -38,8 +38,8 @@ sudo chmod 755 $final_path -R
|
||||||
|
|
||||||
# Modify Nginx configuration file and copy it to Nginx conf directory
|
# Modify Nginx configuration file and copy it to Nginx conf directory
|
||||||
sed -i "s@__PORT__@$port@g" ../conf/nginx.conf
|
sed -i "s@__PORT__@$port@g" ../conf/nginx.conf
|
||||||
sed -i "s@__PORT__@$port@g" ../conf/os.js.service
|
sed -i "s@__PORT__@$port@g" ../conf/osjs.service
|
||||||
sed -i "s@__FINALPATH__@$final_path@g" ../conf/os.js.service
|
sed -i "s@__FINALPATH__@$final_path@g" ../conf/osjs.service
|
||||||
nginxconf=/etc/nginx/conf.d/$domain.d/$app.conf
|
nginxconf=/etc/nginx/conf.d/$domain.d/$app.conf
|
||||||
sudo cp ../conf/nginx.conf $nginxconf
|
sudo cp ../conf/nginx.conf $nginxconf
|
||||||
sudo chown root: $nginxconf
|
sudo chown root: $nginxconf
|
||||||
|
|
Loading…
Add table
Reference in a new issue