mirror of
https://github.com/byReqz/gotty-docker.git
synced 2024-11-22 15:41:16 +00:00
add run.sh for alpine
This commit is contained in:
parent
22c9feb8f2
commit
b39b7ebde0
22
run.sh
Normal file
22
run.sh
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
#!/bin/ash
|
||||||
|
|
||||||
|
if [ -z "$port" ];then
|
||||||
|
port=8080
|
||||||
|
fi
|
||||||
|
if [ -n "$userpass" ];then
|
||||||
|
creds="-c "$userpass""
|
||||||
|
fi
|
||||||
|
if [ -z "$title" ];then
|
||||||
|
title=gotty
|
||||||
|
fi
|
||||||
|
if [ -n "$pkgs" ];then
|
||||||
|
apk update
|
||||||
|
apk add $pkgs
|
||||||
|
fi
|
||||||
|
if [ -z "$command" ];then
|
||||||
|
apk update
|
||||||
|
apk add pfetch figlet
|
||||||
|
command="pfetch && figlet no command set"
|
||||||
|
fi
|
||||||
|
|
||||||
|
./gotty -p "$port" $creds --title-format "$title" tmux new-session -A -s $command "$title"
|
Loading…
Reference in New Issue
Block a user