Lines Matching refs:script

114  * is connected during execution of a procedure script. PROC_STDIN is
249 char script[PATH_MAX];
279 (void) memset(script, '\0', sizeof (script));
466 * Do not perform any script locking.
549 * --> Do not perform any script locking
1204 * If this script was invoked by 'pkgask', just
1205 * execute request script and quit (do_pkgask()).
1374 * value of UPDATE in their postinstall script. After a pkg
1418 * Be sure request script has access to PKG_INSTALL_ROOT if there is
1533 /* update the lock - at the request script */
1539 * executing any request script provided by this package. Initialize
1568 * Run a checkinstall script if one is provided by the package.
1569 * Don't execute checkinstall script if we are only updating the DB.
1570 * Don't execute checkinstall script if only gathering dependencies.
1573 /* update the lock - at the checkinstall script */
1576 /* Execute checkinstall script if one is provided. */
1577 (void) snprintf(script, sizeof (script), "%s/install/checkinstall",
1579 if (access(script, F_OK) != 0) {
1580 /* no script present */
1581 echoDebug(DBG_PKGINSTALL_COC_NONE, pkginst, script,
1584 /* updating db only: skip checkinstall script */
1585 echoDebug(DBG_PKGINSTALL_COC_DBUPD, pkginst, script,
1588 /* only gathering dependencies: skip checkinstall script */
1589 echoDebug(DBG_PKGINSTALL_COC_NODEL, pkginst, script,
1592 /* script present and ok to run: run the script */
1595 echoDebug(DBG_PKGINSTALL_EXECOC_GZ, pkginst, script);
1598 echoDebug(DBG_PKGINSTALL_EXECOC_LZ, pkginst, script,
1601 n = chkexec(update, script);
1611 progerr(ERR_CHKINSTALL_NOSCRIPT, script);
1981 * Execute preinstall script, if one was provided with the
1983 * preinstall script if one was provided with a prior instance.
1984 * Don't execute preinstall script if we are only updating the DB.
1990 /* preinstall script in the media (package source) */
1994 /* preinstall script in the pkgbin instead of media */
1995 (void) snprintf(script, sizeof (script), "%s/preinstall", pkgbin);
1998 /* no script present */
2001 } else if (access(script, F_OK) != 0) {
2002 /* no script present */
2003 echoDebug(DBG_PKGINSTALL_POC_NONE, pkginst, script,
2006 /* updating db only: skip preinstall script */
2007 echoDebug(DBG_PKGINSTALL_POC_DBUPD, pkginst, script,
2010 /* script present and ok to run: run the script */
2016 echoDebug(DBG_PKGINSTALL_EXEPOC_GZ, pkginst, script);
2019 echoDebug(DBG_PKGINSTALL_EXEPOC_LZ, pkginst, script,
2026 script, NULL), ERR_PREINSTALL);
2029 PROC_USER, PROC_GRP, SHELL, script,
2034 (void) remove(script); /* no longer needed. */
2038 * Check delivered package for a postinstall script while
2042 (void) snprintf(script, sizeof (script),
2044 if (access(script, F_OK) == 0) {
2045 (void) snprintf(script, sizeof (script),
2048 script[0] = '\0';
2091 * Execute postinstall script, if any
2092 * Don't execute postinstall script if we are only updating the DB.
2098 script ? script : "",
2099 script ? access(script, F_OK) : -1);
2101 /* update the lock - at the postinstall script */
2104 if ((script == (char *)NULL) || (*script == '\0')) {
2107 } else if (access(script, F_OK) != 0) {
2108 echoDebug(DBG_PKGINSTALL_POIS_NONE, pkginst, script,
2111 echoDebug(DBG_PKGINSTALL_POIS_DBUPD, pkginst, script,
2117 * the postinstall script.
2120 zoneName ? zoneName : "global", pkginst, script);
2122 /* script present and ok to run: run the script */
2126 echoDebug(DBG_PKGINSTALL_EXEPIC_GZ, pkginst, script);
2129 echoDebug(DBG_PKGINSTALL_EXEPIC_LZ, pkginst, script,
2137 script, NULL), ERR_POSTINSTALL);
2140 PROC_USER, PROC_GRP, SHELL, script,
2145 (void) remove(script); /* no longer needed */
2655 * This implements the pkgask function. It just executes the request script