Moves binaries for use with gnu stow
This commit is contained in:
parent
f528ba793c
commit
4fd9f4809b
89 changed files with 0 additions and 0 deletions
20
bin/.bin/php-swap
Executable file
20
bin/.bin/php-swap
Executable file
|
@ -0,0 +1,20 @@
|
|||
#!/bin/bash
|
||||
|
||||
DOCKER_CONFIG_DIRECTORY="/home/jonathan/.dotfiles/docker/web/"
|
||||
|
||||
if [ ! -z "$1" ]; then
|
||||
|
||||
version="$1"
|
||||
|
||||
if [ "$(whoami)" == "root" ]; then
|
||||
cd "$DOCKER_CONFIG_DIRECTORY"
|
||||
docker-compose down
|
||||
sed "s/%version%/$version/" php/Dockerfile.sample > php/Dockerfile
|
||||
docker-compose up --build -d
|
||||
else
|
||||
gksudo $0 "$version"
|
||||
fi
|
||||
else
|
||||
version="$(echo -e "5.6\n7.0\n7.1\n7.2\n7.3" | rofi -dmenu -p "PHP Version")"
|
||||
$0 "$version"
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue