Skip to content

Commit

Permalink
Merge pull request #182 from MOV-AI/fix/beta_tests
Browse files Browse the repository at this point in the history
Fix/beta tests
  • Loading branch information
MithunKinarullathil authored Oct 20, 2022
2 parents c45314b + da81a12 commit 9b4023e
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
3 changes: 2 additions & 1 deletion debian/movai-flow.postinst
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ if [ "$1" == "configure" ]; then
echo "NETWORK_MODE=" > $CONFIG_PATH/config.env

mkdir -p $APP_PATH/{logs,shared,userspace,models_database,config}
chown 1000:1000 $APP_PATH/{logs,shared,userspace,models_database,config} -R
chown 1000:1000 $APP_PATH/{logs,shared,userspace,models_database} -R
chmod 777 $APP_PATH/config -R

cp $CONFIG_PATH/config.env $APP_PATH/config/

Expand Down
2 changes: 1 addition & 1 deletion debian/movai-flow.postrm
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ if [ "$1" = "purge" ]; then
$DOCKER_BIN volume rm $volumes 2>/dev/null
fi

images=$($DOCKER_BIN images | awk '$1 ~ "mov.ai" { print $3 }')
images=$($DOCKER_BIN images | awk '$1 ~ "mov.ai/ce" { print $3 }')
if [ -n "$images" ]
then
Output "removing docker images"
Expand Down
10 changes: 7 additions & 3 deletions scripts/movai-flow-launch
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,13 @@ user_documents_path=$(xdg-user-dir DOCUMENTS)
Output "Creating user and models folder"
if [ ! -e "${user_documents_path}/MovaiFlow" ]; then
mkdir -p "${user_documents_path}/MovaiFlow"
ln -sf "$APP_PATH/userspace" "${user_documents_path}/MovaiFlow"
ln -sf "$APP_PATH/models_database" "${user_documents_path}/MovaiFlow"
Output "User and models folder ${user_documents_path}/MovaiFlow"
Output "User and models folder created in ${user_documents_path}/MovaiFlow"
fi
if [ ! -e "${user_documents_path}/MovaiFlow/userspace" ]; then
ln -sf "$APP_PATH/userspace" "${user_documents_path}/MovaiFlow/userspace"
fi
if [ ! -e "${user_documents_path}/MovaiFlow/models_database" ]; then
ln -sf "$APP_PATH/models_database" "${user_documents_path}/MovaiFlow/models_database"
fi

Output "Starting web application"
Expand Down
2 changes: 2 additions & 0 deletions scripts/movai-flow-rviz
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ fi

# Check NVIDIA
Architecture="$(uname -m)"
HaveNvidia=0
HaveDockerNvidia=0
if [ "$Architecture" = "x86_64" ]; then
# Is there a Nvidia card present (possible HW enhanced graphical rendering)
[ "$(echo /sys/module/nvidia/drivers/pci:nvidia/*:*:*.*)" != "/sys/module/nvidia/drivers/pci:nvidia/*:*:*.*" ] && HaveNvidia=1
Expand Down
2 changes: 2 additions & 0 deletions scripts/movai-flow-simulator
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ fi

# Check NVIDIA
Architecture="$(uname -m)"
HaveNvidia=0
HaveDockerNvidia=0
if [ "$Architecture" = "x86_64" ]; then
# Is there a Nvidia card present (possible HW enhanced graphical rendering)
[ "$(echo /sys/module/nvidia/drivers/pci:nvidia/*:*:*.*)" != "/sys/module/nvidia/drivers/pci:nvidia/*:*:*.*" ] && HaveNvidia=1
Expand Down

0 comments on commit 9b4023e

Please sign in to comment.