add run.sh for alpine

This commit is contained in:
Nils 2021-06-22 23:55:32 +02:00
parent 22c9feb8f2
commit b39b7ebde0
Signed by: byreqz
GPG Key ID: 396A62D7D436749E

22
run.sh Normal file
View 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"