mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 20:30:33 +00:00
WIP Items module.
This commit is contained in:
21
docker/node/scripts/run-nodock.sh
Normal file
21
docker/node/scripts/run-nodock.sh
Normal file
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
SCRIPT="$1"
|
||||
|
||||
if [[ ${PROJECT_PATH:0:1} = "/" ]]; then
|
||||
export PROJECT_PATH=$PROJECT_PATH
|
||||
else
|
||||
export PROJECT_PATH="/opt/app/"$PROJECT_PATH
|
||||
fi
|
||||
|
||||
cd $PROJECT_PATH
|
||||
|
||||
if [[ $YARN = true ]]; then
|
||||
su -c "cd $PROJECT_PATH; yarn" -s /bin/bash www-app
|
||||
else
|
||||
su -c "cd $PROJECT_PATH; npm i --force" -s /bin/bash www-app
|
||||
fi
|
||||
|
||||
chown -R www-app:www-app /opt/app
|
||||
|
||||
su -c "cd $PROJECT_PATH; $SCRIPT" -s /bin/bash www-app
|
||||
Reference in New Issue
Block a user