Improve scripts
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
087e8f7ff3
commit
95f029a0c2
|
@ -1,3 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
echo $1 | tee /sys/class/backlight/intel_backlight/brightness
|
if [[ "$(uname -s)" == "Linux" ]]; then
|
||||||
|
echo $1 | tee /sys/class/backlight/intel_backlight/brightness
|
||||||
|
else
|
||||||
|
echo "only works on linux"
|
||||||
|
fi
|
||||||
|
|
|
@ -73,9 +73,6 @@ docker pull $CONTAINER_IMAGE
|
||||||
|
|
||||||
cmd="\n\
|
cmd="\n\
|
||||||
docker run -it $delete$name$ports$workdir$volumes\n\
|
docker run -it $delete$name$ports$workdir$volumes\n\
|
||||||
-v $HOME/.ssh:$CONTAINER_HOME/.ssh \n\
|
|
||||||
-v $HOME/.kube:$CONTAINER_HOME/.kube \n\
|
|
||||||
-v $HOME/.mc:$CONTAINER_HOME/.mc \n\
|
|
||||||
$CONTAINER_IMAGE \n\
|
$CONTAINER_IMAGE \n\
|
||||||
$@\
|
$@\
|
||||||
"
|
"
|
||||||
|
|
|
@ -16,18 +16,12 @@ yadm clone git@github.com:serverwentdown/env.git
|
||||||
yadm decrypt
|
yadm decrypt
|
||||||
```
|
```
|
||||||
|
|
||||||
Or to run without yadm:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
docker run -it -p 8080:8080 -v $PWD:/home/ambrose/src -v $HOME/.ssh:/home/ambrose/.ssh registry.makerforce.io/ambrose/env
|
|
||||||
```
|
|
||||||
|
|
||||||
Which is also packed as a script:
|
Which is also packed as a script:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
curl -fLo ~/.local/bin/runenv https://raw.githubusercontent.com/serverwentdown/env/master/.local/bin/runenv
|
curl -fLo ~/.local/bin/runenv https://raw.githubusercontent.com/serverwentdown/env/master/.local/bin/runenv
|
||||||
chmod +x ~/.local/bin/runenv
|
chmod +x ~/.local/bin/runenv
|
||||||
runenv
|
runenv -h
|
||||||
```
|
```
|
||||||
|
|
||||||
## Additional features
|
## Additional features
|
||||||
|
|
Loading…
Reference in New Issue