replace postinstall.sh with base.sh