Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create symbolic links before starting the service. #718

Closed
steinybot opened this issue Dec 22, 2015 · 1 comment
Closed

Create symbolic links before starting the service. #718

steinybot opened this issue Dec 22, 2015 · 1 comment
Labels

Comments

@steinybot
Copy link

I'd like to be able to create the symbolic links before starting the service.

I'm overriding the start script with the one for Tanuki Wrapper. This script has configuration with relative paths within the application installation directory and it also sets the working directory to the directory of the script. So the script itself needs to be located within the application installation directory (without having to modify the scripts working directory which is not recommended). Then we create a link from the system loader directory to the actual script.

The problem here is that when the post% scriptlet is created via the com.typesafe.sbt.packager.rpm.RpmScripts.postContent(buildSymlinkScript: Option[String]) function, it puts the postinst-template first and then the build symlink script.

@muuki88
Copy link
Contributor

muuki88 commented Dec 24, 2015

So you want to create a symbolic link after the installation, right? The post-install scriptlet is the correct position.

With 1.1.0-M1 we introduced a new setting maintainerScripts to make it easier customizing these parts. Check out the docs on how to configure your post-inst scriptlet.

@muuki88 muuki88 closed this as completed Feb 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants