This commit is contained in:
root 2022-02-12 18:30:28 +01:00
parent b8d748f5f3
commit dd0aad6740
56 changed files with 555 additions and 278 deletions

View file

@ -1,4 +0,0 @@
#!/bin/bash
cd /tmp/server/
. /root/.bashrc
PATH=$PATH:/usr/local/go/bin make

View file

@ -1,8 +0,0 @@
#/bin/bash
apt install -y build-essential git wget ca-certificates
wget -qO - https://deb.nodesource.com/setup_16.x | bash
wget -qO - https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor > /usr/share/keyrings/yarnkey.gpg
echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" > /etc/apt/sources.list.d/yarn.list
apt-get update
apt-get install -y nodejs yarn
wget -qO - https://go.dev/dl/go1.17.6.linux-amd64.tar.gz | tar -C /usr/local -xz

38
ressources/gotify/gotify Executable file
View file

@ -0,0 +1,38 @@
#!/bin/bash
envinit() {
apt install -y build-essential git wget ca-certificates
wget -qO - https://deb.nodesource.com/setup_16.x | bash
wget -qO - https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor > /usr/share/keyrings/yarnkey.gpg
echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" > /etc/apt/sources.list.d/yarn.list
apt-get update
apt-get install -y nodejs yarn
wget -qO - https://go.dev/dl/go1.17.6.linux-amd64.tar.gz | tar -C /usr/local -xz
}
prebuild(){
VERSION=$1
cd /tmp/
git clone https://github.com/gotify/server.git
cd server/
git checkout ${VERSION}
}
build() {
cd /tmp/server/
. /root/.bashrc
PATH=${PATH}:/usr/local/go/bin make
}
makedeb(){
PATH_BUILD=$1
PATH_DEB=$2
GIT_VERSION=$3
cp ${PATH_BUILD}/tmp/gotify/dist/gotify ${PATH_DEB}/usr/bin/gotify
cp ${PATH_BUILD}/tmp/authelia/config.template.yml ${PATH_DEB}/etc/authelia/configuration.yml
}
echo $1
FUNC=$1
shift
${FUNC} $*

View file

@ -1,8 +0,0 @@
#!/bin/bash
PATH_BUILD=$1
PATH_DEB=$2
GIT_VERSION=$3
cp ${PATH_BUILD}/tmp/gotify/dist/gotify ${PATH_DEB}/usr/bin/gotify
cp ${PATH_BUILD}/tmp/authelia/config.template.yml ${PATH_DEB}/etc/authelia/configuration.yml

View file

@ -1,6 +0,0 @@
#!/bin/bash
VERSION=$1
cd /tmp/
git clone https://github.com/gotify/server.git
cd server/
git checkout $VERSION