1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/distbin_ynh.git synced 2024-09-03 18:26:10 +02:00

Adding Yarn

This commit is contained in:
yalh76 2019-02-03 05:28:53 +01:00
parent c4d75ae091
commit f1ad2f1648
4 changed files with 14 additions and 5 deletions

View file

@ -97,10 +97,13 @@ ynh_app_setting_set $app port $port
### - As well as the section "REINSTALL DEPENDENCIES" in the restore script ### - As well as the section "REINSTALL DEPENDENCIES" in the restore script
### - And the section "UPGRADE DEPENDENCIES" in the upgrade script ### - And the section "UPGRADE DEPENDENCIES" in the upgrade script
#ynh_install_app_dependencies deb1 deb2 curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
ynh_install_nodejs 8 ynh_install_nodejs 8
ynh_install_app_dependencies yarn
#================================================= #=================================================
# CREATE A MYSQL DATABASE # CREATE A MYSQL DATABASE
#================================================= #=================================================

View file

@ -46,9 +46,10 @@ ynh_remove_systemd_config
#================================================= #=================================================
# Remove metapackage and its dependencies # Remove metapackage and its dependencies
#ynh_remove_app_dependencies
ynh_use_nodejs ynh_use_nodejs
ynh_remove_nodejs ynh_remove_nodejs
ynh_remove_app_dependencies
rm -rf "/etc/apt/sources.list.d/yarn.list"
#================================================= #=================================================
# REMOVE THE MYSQL DATABASE # REMOVE THE MYSQL DATABASE

View file

@ -92,11 +92,13 @@ chown -R $app:$app /var/log/$app
# REINSTALL DEPENDENCIES # REINSTALL DEPENDENCIES
#================================================= #=================================================
# Define and install dependencies curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
#ynh_install_app_dependencies deb1 deb2 echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
ynh_install_nodejs 8 ynh_install_nodejs 8
ynh_install_app_dependencies yarn
#================================================= #=================================================
# RESTORE SYSTEMD # RESTORE SYSTEMD
#================================================= #=================================================

View file

@ -101,10 +101,13 @@ ynh_add_nginx_config
# UPGRADE DEPENDENCIES # UPGRADE DEPENDENCIES
#================================================= #=================================================
#ynh_install_app_dependencies deb1 deb2 curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
ynh_install_nodejs 8 ynh_install_nodejs 8
ynh_install_app_dependencies yarn
#================================================= #=================================================
# CREATE DEDICATED USER # CREATE DEDICATED USER
#================================================= #=================================================