run postinstall if run as service script in installer dir

This commit is contained in:
gh2o 2014-07-13 17:27:09 -07:00
parent 6097f9487d
commit 1344d5f674
1 changed files with 2 additions and 0 deletions

View File

@ -373,6 +373,8 @@ if [ $$ -eq 1 ]; then
transitory_main "$@"
elif [ "${script_path}" = "/sbin/init" ]; then
exec /sbin/init.original "$@"
elif [ "${script_path}" = "/installer/script.sh" ]; then
postinstall_main "$@"
else
installer_main "$@"
fi