[webapi]Upadate pack.sh script in all-in-one packages to support 'shared' mode.