This tag is used for user-defined scripts that are executed by a package manager after the installation of a software package.
Questions tagged [post-install]
100 questions
1
vote
1 answer
Inno Setup - Post Install: replace checkboxes with radio buttons?
I've written an Inno Setup script with multiple components. The [Run] component of the script includes these lines, so there could be up to five checkboxes available on the Finish screen.
My question is this: Can I make these options mutually…

emendelson
- 416
- 5
- 18
1
vote
2 answers
db_input in postinst doesn't work
I have a problem with postinst script, I have to ask root password for MySQL to create some user for my application. I know, it's bad practice to use db_input in postinst however I really need it.
Why this postinst doesn't work when I install my app…

Lazy
- 267
- 1
- 8
- 18
0
votes
1 answer
start tomcat during the .deb installation
I have created a deb. package with my App and I should start lighttpd at the end of installation (postinst script). The question is how to start lighttpd and don't lock a terminal. It should started in background somehow...
Thanks.

Lazy
- 267
- 1
- 8
- 18
0
votes
1 answer
Add postinst script to hello-traditional Debian package
I'm trying to add to the standard: hello-traditional Debian package
I downloaded it and unpacked it and I added the postinst script into the debian folder.
It is a very basic script which just echo a string.
#!/bin/sh
# This `DEBIAN/postinst` script…

LPs
- 16,045
- 8
- 30
- 61
0
votes
0 answers
Configuring postinstall step in android (AOSP)
I’m trying to do some work in the postinstall step of android OTA for my device and followed the instructions here
Added these lines to my device mk file.
AB_OTA_POSTINSTALL_CONFIG += \
RUN_POSTINSTALL_system=true \
…

HackX123
- 107
- 1
- 9
0
votes
1 answer
npm not found in debian package post installation script
I would to install a debian package (urcapctl_0.0.1_amd64.deb) in a docker image. During post installation of this debian package, it tries to run npm install command.
Here is how post installation script look like
#!/bin/sh
cd…

BhanuKiran
- 2,631
- 3
- 20
- 36
0
votes
1 answer
.Deb package postinst file not appending data to ~/.bashrc
I have this very simple postinst file for a .Deb package:
#!/bin/sh
echo 'alias command_pandora="sudo /usr/local/bin/pandora"' >> ~/.bashrc
echo 'Pandora Storage Server Installation complete.'
When I run it I even get the 'Pandora Storage Server…

jcjuarez
- 81
- 7
0
votes
1 answer
Why postinst not running after installation?
I create a .deb package for my app and postinst script is not running after installing .
this is my postinst script under the the path of DEBIAN/myapp.postinst
#!/bin/sh
set -e
echo "start postinst packing"
#fix app process permission
sudo chown…

hani
- 1
- 2
0
votes
1 answer
Is there a way to only run npm scripts for installed packages (opposite of --ignore-scripts)
I am in a situation where I need to ship node_modules with the rest of my code because the destination machines do not have access to our private network (and our private npm repository).
My problem is that I want to execute everything that happens…

Ryan Wheale
- 26,022
- 8
- 76
- 96
0
votes
1 answer
lerna bootstrap info undefined@undefined~postinstall: undefined@undefined
I have 3 repositry, react components, ts utils and react app, when I use lerna to manage them, it happens. I'm not very familiar with lerna, I want to know why it hapeened and how can I solve it.
learn repo issue has no problem like this
0
votes
1 answer
Python subprocess.Popen pass modified environment to use new environment varibels in postinst script
I have a server to install different debian packages that contain a postinst script.
Some packages require a modified environment containing some ports to connect to.
When I call the server to install the package, I pass in the request an object…

pugi
- 323
- 1
- 12
0
votes
1 answer
Windows 10 OOBE Post-Setup: How to allow PowerShell Add-AppxPackage?
regarding a missing AppxPackage error on the last official Win 10 LTSC-Release I want to automatically install it in the post setup of Windows setup processing: Out of Box Experience (OOBE), the first boot UI. Therefore, I have the .appx file and…

tar
- 156
- 2
- 13
0
votes
1 answer
How to run npm postinstall script only on MacOS
How can a postinstall script be restricted to run only on macOS?
I have a shell script inside my React native library and it needs to be started when the npm install has completed.
This works great with postinstall but the problem is that Windows…

Aleksandar Marinkovic
- 123
- 10
0
votes
1 answer
Add user to group without restart in DEB postinstall
In my deb-package I add user to 'dialout' group in the postinst script:
usermod -aG dialout $SUDO_USER
And I want the new settings to be applied without rebooting:
newgrp dialout
But there is the trouble: newgrp logs in user to new session, so we…

Michael Galuza
- 386
- 6
- 16
0
votes
1 answer
How do I get my discord bot to play music from YouTube (without link)?
I'm very new to this.
I've made a bot for discord and now i want it to play music from YouTube, without having to put in a link.
I'm using Heroku and am getting several errors, that I really need help with.
I have tried pushing it several times, but…