mirror of
https://git.myvelabs.com/docker/myvemail.git
synced 2025-12-18 09:16:18 +00:00
17 lines
500 B
Bash
Executable file
17 lines
500 B
Bash
Executable file
#!/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
|