mirror of
https://github.com/ngoduykhanh/wireguard-ui.git
synced 2025-04-21 20:12:33 +03:00
If prepare_assets is launched in Debian distro uses yarnpkg instead yarn
This commit is contained in:
parent
e74a3a808f
commit
2e33f9ec52
1 changed files with 3 additions and 1 deletions
|
@ -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" && \
|
||||
|
|
Loading…
Add table
Reference in a new issue