Questions tagged [post-install]

This tag is used for user-defined scripts that are executed by a package manager after the installation of a software package.

100 questions
1
vote
1 answer

Installing brew from macOS app's pre/postinstall script

In my Packages.app's preinstall script I was able to install brew from a modified version of brew's install.sh that removed the sudo check: #!/bin/bash ##preinstall if brew ls --versions wget > /dev/null; then # The package is installed …
Mikeumus
  • 3,570
  • 9
  • 40
  • 65
1
vote
1 answer

run webpack as a postinstall npm script

I'm updating a private node_module that we install in projects via bitbucket. The package has some overrides that get bundled up via webpack and that bundle is used directly (i.e. outside of the build tools used for the project I'm installing the…
Chris Schmitz
  • 20,160
  • 30
  • 81
  • 137
1
vote
1 answer

Mac Installer : How to determine if pkg installation is intercative

Mac Installer: I want to do something (popup dialog) in the postinstall script ONLY if it is an interactive installation. (not through MDM or command line) How can I determine in my postinstall script if the installation is interactive or not?
almog
  • 51
  • 9
1
vote
0 answers

set APP_KEY environment variable automatically after heroku composer install

i have set up a laravel app with continuous deployment ( travis ci ) on heroku . the project's composer.json has a scripts attribute as follows : "scripts": { "post-install-cmd": [ …
soufiane yakoubi
  • 861
  • 11
  • 31
1
vote
0 answers

`need an appropriate loader` error after running `next build` in postinstall script

Here is the replication repo: https://github.com/stomvi/nextjs-postinstall-build Just run: npm i -g git+ssh://git@github.com:stomvi/nextjs-postinstall-build.git I am using next.js as a local web server as a part of a cli tool. I would like to build…
1
vote
1 answer

How to change the post-installation script of a package and re-install it?

I am trying to install gnocchi-api, gnocchi-metricd and python-gnocchiclient with apt-get. I found that the postinst scripts in /var/lib/dpkg/info have some misconfigured ports due to which I cannot install the packages successfully. I wanted to ask…
Nehal
  • 11
  • 1
1
vote
1 answer

NPM - Copy files with CPX in postinstall script

I published a module - Module A. I want to set this module to automatically copy a folder to the root directory AFTER installation. I created below index.js file //Module A - index.js` var cpx =…
seanbun
  • 892
  • 3
  • 14
  • 32
1
vote
1 answer

Dynamically get username in Postinst script of .deb package

I wrote Postinst script for changing owner and file permission: chown -R $(whoami) ~/Desktop/my_file.desktop chmod 777 ~/Desktop/my_file.desktop but after installation it does nothing. I'm really not getting what part of script is wrong. Please…
Mayur Wadekar
  • 29
  • 1
  • 7
1
vote
0 answers

Run interactive shell script in Cent-OS 7 boot

I want to run interactive shell script in CentOS 7 boot, I have tried to post install, /etc/rc.local and crontab @reboot but none of them worked with me Also, I have tried it as a systemd but it failed also. I need any way to run this script except…
1
vote
0 answers

Get App-Target(s) or Appname on CocoaPod post_install

Is there any way to access the apps target names (and NOT the pods target name) within the post_install cocoa-pods script? platform :ios, '9.0' target 'MyProject' do pod '...' end post_install do |installer| # i need my application target…
1
vote
0 answers

Creating a directory in project's root directory when package is installed via npm

I have created an npm package that is supposed to create a directory in the project's root directory (using postinstall) when it is installed via npm. Currently I have a script (createConfigDir.js) that is supposed to create the config…
coderdark
  • 1,481
  • 14
  • 30
1
vote
0 answers

Install npm package on postinstall

I have an npm package that has a peer dependency. I wrote a short postinstall script that will prompt the user to install the peer dependency, but it doesn't work. As you will see from the output below, it looks like npm is downloading the package,…
Shining Love Star
  • 5,734
  • 5
  • 39
  • 49
1
vote
2 answers

Where to add NPM dependencies for running postinstall hooks?

So, I have a library haste-mapper (link to Github - I would like some opinions on it). It uses gulp, babel-core and a few other npm packages to build itself so as to have valid JavaScript instead of Flow into the build/ directory. I added that as a…
Victor
  • 13,914
  • 19
  • 78
  • 147
1
vote
1 answer

Create Debian Package with new rsyslog.d file / Restart rsyslog

I have a file package.init that is placed in /etc/init.d/. Having this file and building with "dpkg-buildpackage -us -uc" dh_installinit creates the postinst file #!/bin/sh set -e # Automatically added by dh_installinit if [ -x "/etc/init.d/package"…
1
vote
1 answer

CocoaPods: How can I specify that certain items should not be added to Build Phases in a podspec?

Working on Cat2Cat and a couple other items which have little executables, I'd like to make sure that those executables are not included in the Build Phases so as to avoid the warning: no rule to process file warnings I'm getting on the executables.…
DesignatedNerd
  • 2,514
  • 1
  • 23
  • 46