-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
54 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#! /bin/bash | ||
|
||
set -o errexit | ||
set -o pipefail | ||
set -o nounset | ||
# set -o xtrace | ||
|
||
if [ -e /etc/rc.local ] | ||
then | ||
#add the command to | ||
#start the UCSC Computational Genomics Platform (CGP) container that sets up the | ||
#Nginx config template with the uuids for each of the containers in the CGP | ||
#at boot time | ||
#See dcc-ops/common/base.yml for more details | ||
if ! grep -Fxq "sudo docker start core-config-gen" /etc/rc.local | ||
then | ||
sed -i -e '$i \ | ||
#start the UCSC Computational Genomics Platform (CGP) container that sets up the\ | ||
#Nginx config template with the uuids for each of the containers in the CGP\ | ||
#See dcc-ops/common/base.yml for more details\ | ||
sudo docker start core-config-gen\n'\ | ||
/etc/rc.local | ||
|
||
echo "Added docker start core-config-gen command to /etc/rc.local" | ||
else | ||
echo "Found docker start core-config-gen or similar command in /etc/rc.local \ | ||
so it was not added" | ||
fi | ||
else | ||
echo "WARNING: No /etc/rc.local file exists; the command 'sudo docker start \ | ||
core-config-gen' should be manually run after booting up" | ||
fi | ||
|