First commit

This commit is contained in:
Myve 2024-08-09 12:50:33 +00:00
commit 7b58f82156
21 changed files with 1951 additions and 0 deletions

17
build/run/bin/upgrade-roundcube Executable file
View file

@ -0,0 +1,17 @@
#!/usr/bin/env bash
# Installer for updating Roundcube
set -e
# Temporary work directory
workdir=$(mktemp -d)
# Download and update
cd ${workdir}
wget -q4 $(wget -q4O- https://api.github.com/repos/roundcube/roundcubemail/releases/latest | grep 'complete.tar.gz"$' | awk '{print $2}' | tr -d '"|,') -O roundcubemail.tar.gz
mkdir ./roundcube
tar zxf roundcubemail.tar.gz -C ./roundcube --strip-components 1
./roundcube/bin/installto.sh /usr/share/webapps/roundcube/
cd
# Cleanup
rm -r ${workdir} -f