switch computer
This commit is contained in:
parent
daa30878e7
commit
f2f96c288b
|
@ -0,0 +1,26 @@
|
||||||
|
#### element-web
|
||||||
|
|
||||||
|
##### Information
|
||||||
|
Site : https://element.io/
|
||||||
|
|
||||||
|
Source : https://github.com/vector-im/element-web
|
||||||
|
|
||||||
|
##### Install
|
||||||
|
|
||||||
|
```bash
|
||||||
|
apt install -y wget ca-certificates
|
||||||
|
wget -qO - https://deb.lgy.fr/install.sh | bash
|
||||||
|
apt-get update
|
||||||
|
apt install element-web
|
||||||
|
|
||||||
|
# sample configuration for apache2
|
||||||
|
|
||||||
|
cp /usr/share/doc/element-web/apache2-element-web.conf /etc/apache2/sites-available/element-web.conf
|
||||||
|
a2ensite element-web
|
||||||
|
|
||||||
|
# edit /etc/apache2/sites-available/element-web.conf
|
||||||
|
# edit /etc/element-web/config.json
|
||||||
|
|
||||||
|
systemctl restart apache2
|
||||||
|
```
|
||||||
|
|
|
@ -0,0 +1,39 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
VERSION=2.0.14
|
||||||
|
APP=budibase
|
||||||
|
DEPOT=https://github.com/Budibase/budibase.git
|
||||||
|
GIT_VERSION=v${VERSION}
|
||||||
|
DEB_VERSION=${VERSION}-$(date +%Y%m%d%H%M)
|
||||||
|
DEBIAN_VERSION_CODENAME=bullseye
|
||||||
|
IMAGE_SIZE=12
|
||||||
|
PACKAGE_DEPENDENCY="yarn nodejs"
|
||||||
|
|
||||||
|
main(){
|
||||||
|
base_package_upgrade
|
||||||
|
envinit
|
||||||
|
get_git_source
|
||||||
|
# build
|
||||||
|
# makedeb
|
||||||
|
}
|
||||||
|
|
||||||
|
envinit() {
|
||||||
|
configure_depot_yarn
|
||||||
|
configure_depot_nodejs
|
||||||
|
install_package_dependency
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd /tmp/${APP}
|
||||||
|
yarn install
|
||||||
|
yarn dist
|
||||||
|
}
|
||||||
|
|
||||||
|
makedeb(){
|
||||||
|
PATH_DEB=/tmp/src/rootfs
|
||||||
|
|
||||||
|
tar -zxf /tmp/${APP}/dist/element-${GIT_VERSION}.tar.gz --strip-components=1 -C ${PATH_DEB}/usr/share/element-web/
|
||||||
|
cp /tmp/${APP}/config.sample.json ${PATH_DEB}/etc/element-web/config.json
|
||||||
|
sed -i "s/%VERSION%/$DEB_VERSION/" ${PATH_DEB}/DEBIAN/control
|
||||||
|
fakeroot dpkg-deb -Z gzip --build ${PATH_DEB} /tmp/dist
|
||||||
|
}
|
|
@ -0,0 +1 @@
|
||||||
|
/etc/element-web/config.json
|
|
@ -0,0 +1,7 @@
|
||||||
|
Package: element-web
|
||||||
|
Version: %VERSION%
|
||||||
|
Section: base
|
||||||
|
Priority: optional
|
||||||
|
Architecture: all
|
||||||
|
Maintainer: Thomas Legay <thomas@lgy.fr>
|
||||||
|
Description: element-web
|
Loading…
Reference in New Issue