2017-09-20 21:59:14 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
#
|
|
|
|
# Dirty hook to npm install, because I have no idea how this
|
|
|
|
# is supposed to be done properly
|
|
|
|
# (no network during the actual build)
|
|
|
|
#
|
|
|
|
|
|
|
|
if ls -d /build/yunohost-admin* >dev/null 2>&1
|
|
|
|
then
|
|
|
|
echo "========================"
|
|
|
|
echo "Starting npm install ..."
|
|
|
|
echo "========================"
|
|
|
|
mkdir /nonexistent
|
|
|
|
chown pbuilder:pbuilder /nonexistent
|
2021-01-21 20:40:29 +01:00
|
|
|
cd /build/yunohost-admin*/app
|
2021-08-08 23:46:21 +02:00
|
|
|
su pbuilder -c "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin npm --progress false ci"
|
2017-09-20 21:59:14 +02:00
|
|
|
fi
|
|
|
|
|