Compare commits
2 Commits
4aa1631e50
...
cad3690da3
Author | SHA1 | Date | |
---|---|---|---|
cad3690da3 | |||
8429669cdc |
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
build/credentials
|
||||||
|
build/deb/*.deb
|
2
build/credentials.example
Normal file
2
build/credentials.example
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
GITEA_USER=damage
|
||||||
|
GITEA_PASS=1c3bf0cbb22728f204b45e7a02a10dc6d28ae9dc
|
37
build/deb/build.sh
Executable file
37
build/deb/build.sh
Executable file
@ -0,0 +1,37 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
|
||||||
|
NAME=s3h
|
||||||
|
VERSION=1.0
|
||||||
|
REVISION=1
|
||||||
|
ARCH=all
|
||||||
|
|
||||||
|
curdir=`dirname $0`
|
||||||
|
workdir="$curdir/${NAME}_${VERSION}-${REVISION}_${ARCH}"
|
||||||
|
mkdir -p "$workdir"
|
||||||
|
|
||||||
|
mkdir -p "$workdir/usr/bin"
|
||||||
|
cp "$curdir/../../s3h.sh" "$workdir/usr/bin/s3h"
|
||||||
|
chmod 0777 "$workdir/usr/bin/s3h"
|
||||||
|
|
||||||
|
mkdir "$workdir/DEBIAN"
|
||||||
|
cat << EOT > "$workdir/DEBIAN/control"
|
||||||
|
Package: $NAME
|
||||||
|
Version: $VERSION
|
||||||
|
Architecture: $ARCH
|
||||||
|
Maintainer: Daniel Buschke <damage@devloop.de>
|
||||||
|
Description: SSH Session Manager for CLI
|
||||||
|
s3h is a SSH Session Manager which is completly running on cli.
|
||||||
|
Homepage: https://source.devloop.de/damage/s3h
|
||||||
|
Depends: dialog
|
||||||
|
EOT
|
||||||
|
|
||||||
|
dpkg-deb --build --root-owner-group "$workdir"
|
||||||
|
|
||||||
|
source "$curdir/../credentials"
|
||||||
|
curl --user "$GITEA_USER:$GITEA_PASS" \
|
||||||
|
--upload-file "${NAME}_${VERSION}-${REVISION}_${ARCH}.deb" \
|
||||||
|
https://source.devloop.de/api/packages/damage/debian/pool/stable/main/upload
|
||||||
|
|
||||||
|
|
||||||
|
rm -rf "$workdir"
|
3
s3h.sh
3
s3h.sh
@ -51,8 +51,6 @@ while [[ -z "$configFile" ]]; do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "config file '$configFile' selected. connecting..."
|
|
||||||
|
|
||||||
# read config file and connect
|
# read config file and connect
|
||||||
if [[ -f "$configFile" ]]; then
|
if [[ -f "$configFile" ]]; then
|
||||||
# each line equals one config option
|
# each line equals one config option
|
||||||
@ -63,6 +61,7 @@ if [[ -f "$configFile" ]]; then
|
|||||||
|
|
||||||
# clear screen // remove dialog colors
|
# clear screen // remove dialog colors
|
||||||
clear
|
clear
|
||||||
|
echo "config file '$configFile' selected. connecting..."
|
||||||
|
|
||||||
# execute ssh
|
# execute ssh
|
||||||
ssh ${para[@]} `basename "$configFile"`
|
ssh ${para[@]} `basename "$configFile"`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user