mirror of
https://git.myvelabs.com/docker/myvemail.git
synced 2025-12-18 20:06:20 +00:00
First commit
This commit is contained in:
commit
7b58f82156
21 changed files with 1951 additions and 0 deletions
17
build/run/bin/upgrade-roundcube
Executable file
17
build/run/bin/upgrade-roundcube
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue