If prepare_assets is launched in Debian distro uses yarnpkg instead yarn

This commit is contained in:
Max Pedraza 2021-11-30 01:54:48 +01:00
parent e74a3a808f
commit 2e33f9ec52

View file

@ -4,7 +4,9 @@ set -e
DIR=$(dirname "$0")
# install node modules
yarn install --pure-lockfile --production
YARN=yarn
[ -x /usr/bin/lsb_release ] && [ -n "`lsb_release -i | grep Debian`" ] && YARN=yarnpkg
$YARN install --pure-lockfile --production
# Copy admin-lte dist
mkdir -p "${DIR}/assets/dist/js" "${DIR}/assets/dist/css" && \