diff --git a/repair.sh b/repair.sh index fcdf7e39..53d281cb 100755 --- a/repair.sh +++ b/repair.sh @@ -135,6 +135,9 @@ if grep -qs /media/wrolpi /proc/mounts && [ -z "$(ls -A /media/wrolpi)" ] && [ ! mkdir /media/wrolpi/config fi +# Build the frontend app. +(cd /opt/wrolpi/app && npm run build) + # Change owner of the media directory, ignore any errors because the drive may be fat/exfat/etc. chown wrolpi:wrolpi /media/wrolpi 2>/dev/null || echo "Ignoring failure to change media directory permissions."