fix: fix the bug about the script will run failed when has no vsoa.pos
This commit is contained in:
parent
11c67c3f2a
commit
1765094443
|
@ -177,7 +177,10 @@ create_docker_file() {
|
|||
#echo "ADD rootfs.tar.xz /" >> /etc/vsoa/Dockerfile
|
||||
echo "FROM busybox:glibc" >> /etc/vsoa/Dockerfile
|
||||
echo "ADD project.tar.gz /app" >> /etc/vsoa/Dockerfile
|
||||
echo "ADD vsoa.pos /etc" >> /etc/vsoa/Dockerfile
|
||||
if [ ${project_info[type]} -eq 2 ] && [ -f "/etc/vsoa/vsoa.pos" ];then
|
||||
echo "ADD vsoa.pos /etc" >> /etc/vsoa/Dockerfile
|
||||
fi
|
||||
|
||||
echo "ENV LD_LIBRARY_PATH \$LD_LIBRARY_PATH:/app/${project_info[name]}/libs" >> /etc/vsoa/Dockerfile
|
||||
if [ ${project_info[type]} -eq 1 ] || [ ${project_info[type]} -eq 3 ];then
|
||||
echo "EXPOSE ${project_info[exposure_port]}" >> /etc/vsoa/Dockerfile
|
||||
|
@ -220,7 +223,7 @@ clean() {
|
|||
rm -rf /etc/vsoa/${project_info[name]}
|
||||
rm -rf /etc/vsoa/project.tar.gz
|
||||
rm -rf /etc/vsoa/root.tar.xz
|
||||
rm -rf /etc/vsoa/etc
|
||||
rm -rf /etc/vsoa/vsoa.pos
|
||||
}
|
||||
main() {
|
||||
if [ $# -eq 0 ] || [ ! -d $1 ];then
|
||||
|
|
Loading…
Reference in New Issue
Block a user