Using Wordpress on Docker container at some point you'll get information about update.
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
#!/bin/bash | |
## | |
## example to run, if you want pass domain.com on port 9999 : | |
## name-of-script.sh domain.com 9999 | |
## | |
domain=$1 | |
port=$2 | |
nginxSitePath='/etc/nginx/sites-enabled/' | |
nginxInitdPath='/etc/init.d/nginx' |
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
# add to .bashrc or .bash_profile | |
alias dockerCleanExited='docker rm $(docker ps --all -q -f status=exited)' | |
alias dockerStopAll='docker stop $(docker ps -q)' | |
alias dockerStartAll='docker start $(docker ps --all -q -f status=exited)' |