Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [bash]

The tag has no usage guidance.

2
votes
1answer
74 views

Automating the creation of an Apache virtual-host file specifically

When I create new web applications on my up-2-date Ubuntu-LAMP with Apache 2.4.x environment, I create their virtual-host files this way: s_a="/etc/apache2/sites-available/" s_e="/etc/apache2/sites-...
1
vote
1answer
13 views

Running consul in the background using Chef

I am trying to create a Chef cookbook that will run Hashicorp Consul in the background and will continue with the rest of the recipe and not get hung on starting Consul. I have tried the & method ...
1
vote
1answer
20 views

How can I diagnose php cli command execution time inside a docker container

I've recently migrated an event subscription service called by a bash script from Ubuntu, into a Dockerised container. The Docker image I am using is: FROM php:7.1-apache The script itself is pretty ...
2
votes
1answer
40 views

How to make the Jenkins agent build then start the server?

I want the Jenkins agent to build and start the server. I do this by specifying how to build and start the server in the Build step of the project configuration in Bash echo "Installing dependencies"...
5
votes
1answer
134 views

How to keep configuration files automatically during apt-get upgrade or install?

When performing and apt-get update; apt-get upgrade -y on a server I encountered the message: Setting up sudo (1.8.16-0ubuntu1.5) ... Configuration file '/etc/sudoers' ==> Modified (by you or by ...
0
votes
0answers
25 views

Valid use case for environment variable with length of zero?

Are there any valid use cases for allowing an environment variable to have a length of 0? $ FOO="" # why would anyone do this? The use case is that I'm writing a utility that parses environment ...
1
vote
1answer
227 views

Docker exec environment different to container shell

I have a docker image that looks something like this: FROM ubuntu:16.04 # Install packages for building ruby RUN apt-get update && \ apt-get -y install build-essential git curl wget net-...
0
votes
3answers
661 views

Access vault secret from bash script

I am looking for help on a direction on where to go from here. I have a Hasicorp Vault server running and accessible over DNS (local). I need to have a script get a secret from it then use that secret....
3
votes
1answer
205 views

Jenkins hangs on Windows CMD build that has GUI

I am attempting to automate imports and exports of Oracle's PeopleSoft Application Designer. It is a GUI program but it can operate in the windows command line for certain tasks. This project has ...
0
votes
1answer
71 views

The right way to Ansiblically deploy environments directly from Github:

Can one deploy an environment for some Linux OS (say, Ubuntu) from a raw Github playbook in a way similar to this (I wonder if it's the correct syntax)? bash <(curl -s https://raw....
6
votes
2answers
715 views

Interference of Docker CMD with su: works with su-exec but not with su?

In this bash script under Linux Alpine they have (line 8): exec su-exec "$ZOO_USER" "$0" "$@" As far as I know, su-exec is however an Apache httpd dependecy - can I avoid it installing it under ...