mirror of
https://github.com/YunoHost-Apps/borgwarehouse_ynh.git
synced 2024-09-03 18:16:17 +02:00
Update upgrade
This commit is contained in:
parent
e4dda09155
commit
56bc92655a
1 changed files with 10 additions and 0 deletions
|
@ -65,6 +65,16 @@ ynh_add_config --template=".env" --destination="/home/yunohost.app/$app/app/.env
|
||||||
chmod 400 "/home/yunohost.app/$app/app/.env.local"
|
chmod 400 "/home/yunohost.app/$app/app/.env.local"
|
||||||
chown $app:$app "/home/yunohost.app/$app/app/.env.local"
|
chown $app:$app "/home/yunohost.app/$app/app/.env.local"
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# INSTALL BORGWARHOUSE
|
||||||
|
#=================================================
|
||||||
|
|
||||||
|
pushd /home/yunohost.app/$app/app
|
||||||
|
ynh_use_nodejs
|
||||||
|
ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH $ynh_npm ci
|
||||||
|
ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH NODE_ENV=production $ynh_npm run build
|
||||||
|
popd
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# START SYSTEMD SERVICE
|
# START SYSTEMD SERVICE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue