Include index.html in the install and install npm modules

This commit is contained in:
Danoloan10 2022-08-07 00:16:35 +02:00
parent dcd8cb5407
commit f11b68e213
1 changed files with 2 additions and 1 deletions

View File

@ -5,7 +5,7 @@
# - $SV_WEB: runsvdir of webapp services # - $SV_WEB: runsvdir of webapp services
app=muse app=muse
files="static muse covers admin" files="static muse covers admin index.html"
services="muse muse-covers" services="muse muse-covers"
set -- $services set -- $services
@ -14,4 +14,5 @@ mkdir -p ${WEBAPPS}/$app
sv stop $(printf "${SV_WEB}/%s\n" $@) sv stop $(printf "${SV_WEB}/%s\n" $@)
rm -vr ${WEBAPPS}/$app/* rm -vr ${WEBAPPS}/$app/*
cp -vr ${files} ${WEBAPPS}/$app/ cp -vr ${files} ${WEBAPPS}/$app/
( cd ${WEBAPPS}/$app/covers && npm update )
sv start $(printf "${SV_WEB}/%s\n" $@) sv start $(printf "${SV_WEB}/%s\n" $@)